/* ============================================================
   WE AI N8N FACTORY — Landing Page
   Identidade WE: laranja #FF5A00 sobre preto, vidro, brilho
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  --orange: #FF5A00;
  --orange-h: #ff7b33;
  --orange-d: #e04e00;
  --orange-glow: rgba(255, 90, 0, .30);
  --orange-glow-soft: rgba(255, 90, 0, .12);

  --black: #050505;
  --dark1: #080808;
  --dark2: #0a0a0a;
  --dark3: #0d0d0d;
  --dark4: #111111;
  --dark5: #141414;

  --white: #FFFFFF;
  --muted: #B8B8B8;
  --muted-dim: #8a8a8a;

  --glass: rgba(255, 255, 255, .03);
  --glass-2: rgba(255, 255, 255, .055);
  --border: rgba(255, 255, 255, .08);
  --border-o: rgba(255, 90, 0, .22);
  --border-o-strong: rgba(255, 90, 0, .55);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Consolas, 'Liberation Mono', monospace;

  --rad: 18px;
  --rad-sm: 11px;
  --rad-lg: 26px;

  --maxw: 1280px;
  --nav-h: 78px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 18px);
  /* `clip` em vez de `hidden`: `hidden` cria um scroll container e quebra o
     `position: sticky` da navegação lateral do FAQ. */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 90, 0, .10) 0%, transparent 46%),
    radial-gradient(circle at 82% 68%, rgba(255, 90, 0, .06) 0%, transparent 48%),
    radial-gradient(circle at 50% 100%, rgba(255, 255, 255, .02) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
  animation: bgPulse 18s ease-in-out infinite;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg width='120' height='120' xmlns='http://www.w3.org/2000/svg'><defs><pattern id='g' width='120' height='120' patternUnits='userSpaceOnUse'><path d='M 120 0 L 0 0 0 120' fill='none' stroke='rgba(255,255,255,0.02)' stroke-width='1'/></pattern></defs><rect width='120' height='120' fill='url(%23g)'/></svg>");
  pointer-events: none;
  z-index: 0;
}

@keyframes bgPulse { 0%, 100% { opacity: 1 } 50% { opacity: .72 } }

/* ---------- TYPO ---------- */
h1, h2, h3, h4, h5 { color: var(--white); font-weight: 800; line-height: 1.15; letter-spacing: -.022em; }
h1 { font-size: clamp(2.1rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.8vw, 2.85rem); }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.5rem); font-weight: 700; letter-spacing: -.015em; }
h4 { font-size: 1.03rem; font-weight: 700; }
p { color: var(--muted); font-size: 1.01rem; line-height: 1.8; }
a { text-decoration: none; color: inherit; transition: color .25s, border-color .25s, background .25s, transform .25s, box-shadow .25s; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; }
strong { color: var(--white); font-weight: 700; }
code { font-family: var(--mono); font-size: .88em; color: var(--orange-h); background: rgba(255, 90, 0, .08); padding: 2px 7px; border-radius: 6px; border: 1px solid rgba(255, 90, 0, .16); }

/* ---------- LAYOUT ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; width: 100%; position: relative; z-index: 1; }
.section { padding: 104px 0; position: relative; }
.section.tight { padding: 72px 0; }
.section.band { background: linear-gradient(135deg, var(--dark1), var(--dark4)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section.band-2 { background: linear-gradient(135deg, var(--black), var(--dark3)); }

.sec-head { max-width: 820px; margin: 0 auto 58px; text-align: center; }
.sec-head.left { margin-left: 0; text-align: left; }
.eyebrow {
  display: inline-block;
  color: var(--orange);
  font-weight: 800;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  font-size: .74rem;
  margin-bottom: 18px;
}
.sec-head p { margin-top: 16px; font-size: 1.05rem; }
.hl { color: var(--orange); }
.hl-w { color: var(--white); }

/* ---------- SCROLL PROGRESS ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--orange), var(--orange-h));
  z-index: 10050; box-shadow: 0 0 12px var(--orange-glow);
}

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; height: var(--nav-h);
  z-index: 10000; display: flex; align-items: center;
  background: rgba(5, 5, 5, .84);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--border);
  transition: height .3s, background .3s, box-shadow .3s;
}
.nav.scrolled { height: 66px; background: rgba(5, 5, 5, .97); box-shadow: 0 6px 30px rgba(0, 0, 0, .45); }
.nav-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; width: 100%; }

.brand { display: flex; align-items: center; gap: 13px; flex-shrink: 0; }
.brand img { height: 46px; width: auto; transition: height .3s; filter: drop-shadow(0 2px 10px var(--orange-glow)); }
.nav.scrolled .brand img { height: 38px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-txt b { font-size: .95rem; font-weight: 800; letter-spacing: -.01em; }
.brand-txt span { font-size: .63rem; color: var(--orange); letter-spacing: 1.6px; text-transform: uppercase; font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: 3px; }
.nav-links a {
  color: var(--muted); font-weight: 600; font-size: .875rem;
  padding: 8px 11px; border-radius: 9px; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--orange); background: rgba(255, 90, 0, .08); }

.nav-cta {
  background: linear-gradient(135deg, var(--orange), var(--orange-h));
  color: #fff !important; padding: 11px 21px; border-radius: 50px;
  font-weight: 700; font-size: .8rem; letter-spacing: .4px; text-transform: uppercase;
  box-shadow: 0 4px 16px var(--orange-glow); white-space: nowrap;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 9px 26px rgba(255, 90, 0, .5); }

.burger { display: none; background: none; border: 1px solid var(--border); color: #fff; width: 42px; height: 42px; border-radius: 10px; font-size: 1.2rem; cursor: pointer; }

.mobile-menu { display: none; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 32px; border-radius: 50px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px; font-size: .84rem;
  cursor: pointer; border: 2px solid transparent; position: relative; overflow: hidden;
  font-family: var(--font); white-space: nowrap;
}
.btn::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 0; height: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  transform: translate(-50%, -50%); transition: width .6s, height .6s;
}
.btn:hover::before { width: 320px; height: 320px; }
.btn > * { position: relative; z-index: 1; }
.btn-primary { background: linear-gradient(135deg, var(--orange), var(--orange-h)); color: #fff !important; box-shadow: 0 6px 22px var(--orange-glow); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 34px rgba(255, 90, 0, .5); }
.btn-ghost { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { border-color: #fff; transform: translateY(-3px); background: rgba(255, 255, 255, .05); }
.btn-o { background: transparent; color: var(--orange) !important; border-color: var(--orange); }
.btn-o:hover { background: var(--orange); color: #fff !important; transform: translateY(-3px); }
.btn-sm { padding: 10px 20px; font-size: .74rem; }

/* ---------- REVEAL ANIMATION ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
.reveal.d5 { transition-delay: .4s; } .reveal.d6 { transition-delay: .48s; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: calc(var(--nav-h) + 56px) 0 92px; position: relative; overflow: hidden; }
/* Alinhado pelo topo: o mock e alto, e centrar o texto nele
   deixava o hero a parecer quebrado. */
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 60px; align-items: start; }
.hero-grid > :first-child { padding-top: 6px; }
@media (max-width: 1100px) {
  .hero-grid { align-items: center; }
  .hero-grid > :first-child { padding-top: 0; }
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255, 90, 0, .1); border: 1px solid var(--border-o);
  color: var(--orange-h); border-radius: 50px; padding: 7px 16px 7px 8px;
  font-size: .74rem; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  margin-bottom: 26px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 90, 0, .16); animation: pulseDot 2s infinite; }
@keyframes pulseDot { 0%, 100% { box-shadow: 0 0 0 3px rgba(255, 90, 0, .2) } 50% { box-shadow: 0 0 0 8px rgba(255, 90, 0, 0) } }

.hero h1 { margin-bottom: 24px; }
.hero h1 .l2 { display: block; }
.hero-sub { font-size: 1.11rem; max-width: 560px; margin-bottom: 34px; }
.hero-sub b { color: var(--white); font-weight: 600; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 38px; }

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--border); border: 1px solid var(--border); border-radius: var(--rad-sm); overflow: hidden; }
.hero-stats div { background: var(--dark1); padding: 15px 16px; }
.hero-stats b { display: block; font-size: 1.22rem; font-weight: 800; color: var(--orange); letter-spacing: -.02em; }
.hero-stats span { font-size: .68rem; color: var(--muted-dim); text-transform: uppercase; letter-spacing: .9px; font-weight: 600; }

/* ---------- APP FRAME (mockups) ---------- */
.app-frame {
  background: linear-gradient(160deg, var(--dark2), var(--dark1));
  border: 1px solid var(--border);
  border-radius: var(--rad-lg);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 90, 0, .05);
  overflow: hidden;
  position: relative;
}
.app-frame::after {
  content: ''; position: absolute; inset: -1px; border-radius: var(--rad-lg);
  background: linear-gradient(135deg, rgba(255, 90, 0, .22), transparent 38%, transparent 62%, rgba(255, 90, 0, .1));
  pointer-events: none; z-index: 4;
}
.frame-bar { display: flex; align-items: center; gap: 8px; padding: 11px 15px; background: rgba(0, 0, 0, .5); border-bottom: 1px solid var(--border); }
.frame-dots { display: flex; gap: 6px; }
.frame-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.frame-dots i:first-child { background: #ff5f57; } .frame-dots i:nth-child(2) { background: #febc2e; } .frame-dots i:nth-child(3) { background: #28c840; }
.frame-url { flex: 1; text-align: center; font-family: var(--mono); font-size: .7rem; color: var(--muted-dim); background: rgba(255, 255, 255, .04); border-radius: 6px; padding: 4px 10px; margin: 0 8px; }
.frame-tag { font-size: .64rem; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; color: var(--orange); }

/* ============================================================
   MOCKUP — CHAT RÁPIDO (animated)
   ============================================================ */
.mk-body { display: grid; grid-template-columns: 168px 1fr; min-height: 470px; }

.mk-side { background: rgba(0, 0, 0, .38); border-right: 1px solid var(--border); padding: 14px 10px; overflow: hidden; }
.mk-brand { display: flex; align-items: center; gap: 7px; padding: 0 4px 12px; margin-bottom: 10px; border-bottom: 1px solid var(--border); }
.mk-brand img { height: 24px; }
.mk-sec { font-size: .56rem; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted-dim); padding: 11px 8px 5px; }
.mk-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 7px; font-size: .73rem; color: var(--muted); font-weight: 500; margin-bottom: 1px; }
.mk-item .ico { width: 15px; text-align: center; font-size: .8rem; }
.mk-item.on { background: rgba(255, 90, 0, .13); color: var(--orange); font-weight: 700; }

.mk-main { display: flex; flex-direction: column; min-width: 0; }

.mk-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .015); }
.mk-title { font-size: .84rem; font-weight: 700; color: var(--white); }
.mk-model { display: flex; align-items: center; gap: 6px; font-size: .66rem; color: var(--muted); background: rgba(255, 255, 255, .05); border: 1px solid var(--border); border-radius: 50px; padding: 4px 11px; font-family: var(--mono); }
.mk-model .live { width: 6px; height: 6px; border-radius: 50%; background: #2ecc71; }

.mk-chat { flex: 1; padding: 15px 16px; overflow: hidden; display: flex; flex-direction: column; gap: 11px; min-height: 0; }

.bubble { max-width: 88%; font-size: .78rem; line-height: 1.62; border-radius: 12px; padding: 10px 13px; }
.bubble .role { font-size: .58rem; font-weight: 800; letter-spacing: 1.1px; text-transform: uppercase; margin-bottom: 5px; }
.bubble.ai { background: rgba(255, 255, 255, .045); border: 1px solid var(--border); color: #e4e4e4; align-self: flex-start; }
.bubble.ai .role { color: var(--orange); }
.bubble.me { background: linear-gradient(135deg, var(--orange), var(--orange-d)); color: #fff; align-self: flex-end; border: 1px solid rgba(255, 255, 255, .18); }
.bubble.me .role { color: rgba(255, 255, 255, .8); }

.mk-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.chip { font-size: .66rem; font-weight: 600; padding: 4px 10px; border-radius: 20px; background: rgba(255, 90, 0, .1); border: 1px solid rgba(255, 90, 0, .22); color: var(--muted); }

/* typing indicator */
.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); animation: typingBounce 1.25s infinite; }
.typing span:nth-child(2) { animation-delay: .18s; } .typing span:nth-child(3) { animation-delay: .36s; }
@keyframes typingBounce { 0%, 60%, 100% { transform: translateY(0); opacity: .45 } 30% { transform: translateY(-5px); opacity: 1 } }

/* pipeline progress card */
.prog-card { background: rgba(0, 0, 0, .32); border: 1px solid var(--border); border-radius: 11px; padding: 12px; margin-top: 9px; }
.prog-title { font-size: .74rem; font-weight: 700; color: #fff; margin-bottom: 9px; }
.prog-step { display: flex; align-items: center; gap: 8px; font-size: .72rem; color: var(--muted-dim); padding: 3px 0; transition: color .3s; }
.prog-step .tick { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .18); display: flex; align-items: center; justify-content: center; font-size: .55rem; flex-shrink: 0; transition: all .3s; }
.prog-step.active { color: #fff; font-weight: 600; }
.prog-step.active .tick { border-color: var(--orange); background: rgba(255, 90, 0, .18); box-shadow: 0 0 0 3px rgba(255, 90, 0, .1); animation: tickPulse 1.4s infinite; }
.prog-step.done { color: var(--muted); }
.prog-step.done .tick { border-color: #2ecc71; background: rgba(46, 204, 113, .16); color: #2ecc71; }
@keyframes tickPulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(255, 90, 0, .1) } 50% { box-shadow: 0 0 0 6px rgba(255, 90, 0, 0) } }

.prog-bar { height: 4px; background: rgba(255, 255, 255, .07); border-radius: 4px; margin-top: 11px; overflow: hidden; }
.prog-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--orange), var(--orange-h)); border-radius: 4px; transition: width .45s ease; box-shadow: 0 0 10px var(--orange-glow); }

/* editor bubble with graph */
.editor-bubble { background: rgba(255, 90, 0, .05); border: 1px solid var(--border-o); border-radius: 12px; padding: 12px; margin-top: 10px; }
.eb-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; flex-wrap: wrap; }
.eb-title { font-size: .8rem; font-weight: 700; color: #fff; }
.eb-meta { display: flex; gap: 9px; font-size: .64rem; color: var(--muted-dim); font-family: var(--mono); }
.eb-meta .score { color: #2ecc71; font-weight: 700; }

.wf-graph { display: flex; flex-direction: column; gap: 0; }
.wf-node { display: flex; align-items: center; gap: 9px; background: rgba(0, 0, 0, .34); border: 1px solid var(--border); border-radius: 9px; padding: 7px 10px; opacity: 0; transform: translateY(8px) scale(.97); transition: opacity .35s, transform .35s; }
.wf-node.show { opacity: 1; transform: none; }
.wf-node .nico { width: 25px; height: 25px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: .82rem; background: rgba(255, 90, 0, .13); border: 1px solid rgba(255, 90, 0, .2); flex-shrink: 0; }
.wf-node .ntype { font-size: .56rem; color: var(--orange); text-transform: uppercase; letter-spacing: .8px; font-weight: 700; }
.wf-node .nname { font-size: .72rem; color: #e8e8e8; font-weight: 600; line-height: 1.3; }
.wf-node .ncap { margin-left: auto; font-size: .55rem; color: var(--muted-dim); font-family: var(--mono); background: rgba(255, 255, 255, .05); padding: 2px 7px; border-radius: 20px; white-space: nowrap; }
.wf-conn { height: 15px; width: 2px; margin-left: 22px; background: linear-gradient(180deg, rgba(255, 90, 0, .55), rgba(255, 90, 0, .12)); opacity: 0; transition: opacity .3s; position: relative; }
.wf-conn.show { opacity: 1; }
.wf-conn::after { content: ''; position: absolute; bottom: -1px; left: -3px; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid rgba(255, 90, 0, .55); }

.eb-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.eb-btn { font-size: .65rem; font-weight: 700; padding: 6px 12px; border-radius: 7px; background: rgba(255, 255, 255, .05); border: 1px solid var(--border); color: var(--muted); }
.eb-btn.pri { background: linear-gradient(135deg, var(--orange), var(--orange-d)); border-color: var(--orange); color: #fff; box-shadow: 0 3px 12px var(--orange-glow); }
.eb-btn:hover { transform: translateY(-1px); color: #fff; border-color: var(--border-o-strong); }

.mk-input { border-top: 1px solid var(--border); padding: 11px 16px; background: rgba(0, 0, 0, .28); }
.mk-input-row { display: flex; gap: 8px; align-items: center; }
.mk-field { flex: 1; font-size: .74rem; color: var(--muted-dim); background: rgba(255, 255, 255, .035); border: 1px solid var(--border); border-radius: 9px; padding: 9px 12px; }
.mk-field .caret { display: inline-block; width: 1.5px; height: 13px; background: var(--orange); vertical-align: -2px; animation: caretBlink 1s steps(2) infinite; }
@keyframes caretBlink { 0%, 100% { opacity: 1 } 50% { opacity: 0 } }
.mk-send { background: linear-gradient(135deg, var(--orange), var(--orange-h)); color: #fff; border: none; border-radius: 9px; padding: 9px 16px; font-size: .72rem; font-weight: 700; box-shadow: 0 3px 12px var(--orange-glow); }
.mk-hint { font-size: .62rem; color: var(--muted-dim); margin-top: 6px; text-align: center; }

/* ============================================================
   MOCKUP — other screens
   ============================================================ */
.mk-panel { padding: 16px; overflow: hidden; }
.mk-panel-head { display: flex; align-items: center; gap: 11px; margin-bottom: 15px; }
.mk-panel-head .ic { width: 34px; height: 34px; border-radius: 9px; background: rgba(255, 90, 0, .13); border: 1px solid rgba(255, 90, 0, .22); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.mk-panel-head h3 { font-size: .95rem; }
.mk-panel-head p { font-size: .7rem; color: var(--muted-dim); line-height: 1.45; margin: 0; }

/* wizard */
.wiz-steps { display: flex; align-items: center; gap: 0; margin-bottom: 18px; }
.wiz-step { display: flex; align-items: center; gap: 7px; }
.wiz-num { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: .68rem; font-weight: 700; color: var(--muted-dim); flex-shrink: 0; transition: all .3s; }
.wiz-step.on .wiz-num { background: var(--orange); border-color: var(--orange); color: #fff; box-shadow: 0 0 0 4px rgba(255, 90, 0, .13); }
.wiz-step.done .wiz-num { border-color: #2ecc71; color: #2ecc71; }
.wiz-label { font-size: .66rem; color: var(--muted-dim); font-weight: 600; white-space: nowrap; }
.wiz-step.on .wiz-label { color: #fff; }
.wiz-line { flex: 1; height: 1.5px; background: var(--border); margin: 0 8px; min-width: 12px; }
.wiz-line.done { background: rgba(46, 204, 113, .5); }

.sector-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-bottom: 14px; }
.sector-pill { display: flex; align-items: center; gap: 6px; font-size: .68rem; font-weight: 600; color: var(--muted); background: rgba(255, 255, 255, .035); border: 1px solid var(--border); border-radius: 8px; padding: 8px 9px; }
.sector-pill.on { background: rgba(255, 90, 0, .14); border-color: var(--orange); color: var(--orange); }
.sector-pill .c { margin-left: auto; font-size: .58rem; color: var(--muted-dim); font-family: var(--mono); }

.mk-form { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.mk-field-lbl { font-size: .6rem; font-weight: 700; color: var(--muted-dim); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 4px; }
.mk-inp { font-size: .7rem; color: #ddd; background: rgba(255, 255, 255, .04); border: 1px solid var(--border); border-radius: 7px; padding: 8px 10px; }
.mk-inp.focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 90, 0, .1); }
.mk-inp.select { display: flex; justify-content: space-between; align-items: center; }
.mk-inp.select::after { content: '▾'; color: var(--muted-dim); font-size: .65rem; }

/* gallery grid */
.pill-row { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.pill { font-size: .64rem; font-weight: 600; padding: 5px 11px; border-radius: 20px; background: rgba(255, 255, 255, .04); border: 1px solid var(--border); color: var(--muted); }
.pill.on { background: var(--orange); border-color: var(--orange); color: #fff; }
.pill b { font-family: var(--mono); opacity: .7; font-weight: 600; }

.wf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.wf-card { background: rgba(255, 255, 255, .03); border: 1px solid var(--border); border-radius: 10px; padding: 11px; transition: all .3s; }
.wf-card:hover { border-color: var(--border-o-strong); transform: translateY(-3px); }
.wf-card .chead { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.wf-card .cic { width: 26px; height: 26px; border-radius: 7px; background: rgba(255, 90, 0, .12); display: flex; align-items: center; justify-content: center; font-size: .82rem; flex-shrink: 0; }
.wf-card h4 { font-size: .72rem; font-weight: 700; color: #fff; line-height: 1.3; }
.wf-card .csec { font-size: .57rem; color: var(--orange); text-transform: uppercase; letter-spacing: .8px; font-weight: 700; margin-top: 2px; }
.wf-card .cstats { display: flex; gap: 9px; font-size: .61rem; color: var(--muted-dim); font-family: var(--mono); }
.wf-card .cstats b { color: var(--muted); }
.wf-card .cacts { display: flex; gap: 5px; margin-top: 9px; }
.wf-card .cacts span { font-size: .58rem; font-weight: 700; padding: 4px 8px; border-radius: 6px; background: rgba(255, 255, 255, .05); color: var(--muted-dim); }

/* dashboard stats */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-bottom: 15px; }
.stat-box { background: rgba(255, 255, 255, .03); border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.stat-box .v { font-size: 1.18rem; font-weight: 800; color: var(--orange); letter-spacing: -.02em; }
.stat-box .l { font-size: .58rem; color: var(--muted-dim); text-transform: uppercase; letter-spacing: .9px; font-weight: 700; margin-top: 2px; }
.stat-box .d { font-size: .58rem; color: #2ecc71; margin-top: 4px; font-weight: 600; }

.mk-table { width: 100%; border-collapse: collapse; font-size: .66rem; }
.mk-table th { text-align: left; font-size: .57rem; text-transform: uppercase; letter-spacing: .8px; color: var(--muted-dim); font-weight: 700; padding: 7px 9px; border-bottom: 1px solid var(--border); }
.mk-table td { padding: 8px 9px; border-bottom: 1px solid rgba(255, 255, 255, .05); color: var(--muted); }
.mk-table td b { color: #fff; font-weight: 600; }
.status { font-size: .56rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.status.ok { background: rgba(46, 204, 113, .13); color: #2ecc71; }
.status.warn { background: rgba(255, 176, 32, .13); color: #ffb020; }
.status.info { background: rgba(255, 90, 0, .13); color: var(--orange); }
.status.mute { background: rgba(255, 255, 255, .06); color: var(--muted-dim); }

/* onboarding */
.onb-steps { display: grid; gap: 8px; margin-bottom: 15px; }
.onb-item { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; background: rgba(255, 255, 255, .03); border: 1px solid var(--border); }
.onb-item.done { border-left: 3px solid #2ecc71; }
.onb-item.cur { border-left: 3px solid var(--orange); background: rgba(255, 90, 0, .07); }
.onb-item.lock { opacity: .55; }
.onb-ic { width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: .82rem; background: rgba(255, 255, 255, .06); flex-shrink: 0; }
.onb-item.done .onb-ic { background: rgba(46, 204, 113, .15); }
.onb-item.cur .onb-ic { background: rgba(255, 90, 0, .16); }
.onb-txt b { display: block; font-size: .73rem; color: #fff; font-weight: 700; }
.onb-txt span { font-size: .62rem; color: var(--muted-dim); }
.onb-arrow { margin-left: auto; color: var(--muted-dim); font-size: .7rem; }

/* router dashboard */
.router-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 14px; }
.rstat { background: rgba(255, 255, 255, .03); border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.rstat .v { font-size: 1.3rem; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.rstat .l { font-size: .57rem; color: var(--muted-dim); text-transform: uppercase; letter-spacing: .9px; font-weight: 700; }
.rstat.accent .v { color: var(--orange); }
.model-list { display: flex; flex-direction: column; gap: 5px; }
.model-row { display: flex; align-items: center; gap: 9px; font-size: .68rem; padding: 8px 11px; border-radius: 8px; background: rgba(255, 255, 255, .025); border: 1px solid var(--border); color: var(--muted); }
.model-row .mdot { width: 7px; height: 7px; border-radius: 50%; background: #2ecc71; flex-shrink: 0; }
.model-row .mname { color: #e6e6e6; font-family: var(--mono); font-size: .66rem; }
.model-row .mtag { margin-left: auto; font-size: .56rem; color: var(--orange); background: rgba(255, 90, 0, .1); padding: 2px 7px; border-radius: 20px; font-weight: 700; }

/* ============================================================
   TABS
   ============================================================ */
.tabs-bar { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; margin-bottom: 38px; background: rgba(255, 255, 255, .03); border: 1px solid var(--border); border-radius: 50px; padding: 6px; width: fit-content; margin-left: auto; margin-right: auto; }
.tab-btn { font-size: .78rem; font-weight: 700; color: var(--muted); background: none; border: none; padding: 9px 18px; border-radius: 50px; cursor: pointer; transition: all .25s; white-space: nowrap; }
.tab-btn:hover { color: #fff; }
.tab-btn.on { background: linear-gradient(135deg, var(--orange), var(--orange-h)); color: #fff; box-shadow: 0 3px 14px var(--orange-glow); }
.tab-panel { display: none; }
.tab-panel.on { display: block; animation: fadeUp .5s cubic-bezier(.22,.61,.36,1); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px) } to { opacity: 1; transform: none } }

.tab-desc { text-align: center; max-width: 700px; margin: 0 auto 30px; }
.tab-desc b { color: #fff; }

/* ============================================================
   PIPELINE (Como funciona)
   ============================================================ */
.pipe-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; position: relative; margin-bottom: 56px; }
.pipe-track::before { content: ''; position: absolute; top: 27px; left: 8%; right: 8%; height: 2px; background: rgba(255, 255, 255, .07); z-index: 0; }
.pipe-fill-line { position: absolute; top: 27px; left: 8%; height: 2px; width: 0%; background: linear-gradient(90deg, var(--orange), var(--orange-h)); box-shadow: 0 0 12px var(--orange-glow); transition: width .5s linear; z-index: 1; }
.pipe-step { position: relative; z-index: 2; text-align: center; }
.pipe-num { width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 14px; background: var(--dark1); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 1.05rem; transition: all .45s; }
.pipe-step.on .pipe-num { border-color: var(--orange); background: rgba(255, 90, 0, .14); transform: scale(1.12); box-shadow: 0 0 0 6px rgba(255, 90, 0, .1), 0 0 22px var(--orange-glow); }
.pipe-step.done .pipe-num { border-color: rgba(46, 204, 113, .6); }
.pipe-step h3 { font-size: .88rem; margin-bottom: 5px; }
.pipe-step p { font-size: .76rem; color: var(--muted-dim); line-height: 1.5; }
.pipe-step .code { font-family: var(--mono); font-size: .6rem; color: var(--orange); background: rgba(255, 90, 0, .08); padding: 2px 7px; border-radius: 5px; display: inline-block; margin-top: 7px; border: 1px solid rgba(255, 90, 0, .15); }

/* ---------- canvas graph ---------- */
.canvas-graph { position: relative; background: rgba(0, 0, 0, .28); border: 1px solid var(--border); border-radius: var(--rad); padding: 26px 18px; min-height: 320px; overflow-x: auto; }
.canvas-graph svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.gnode { position: absolute; width: 154px; background: var(--dark2); border: 1px solid var(--border); border-radius: 11px; padding: 10px 11px; opacity: 0; transform: translateY(10px); transition: opacity .45s, transform .45s, border-color .3s, box-shadow .3s; }
.gnode.show { opacity: 1; transform: none; }
.gnode.hl { border-color: var(--orange); box-shadow: 0 0 22px var(--orange-glow); }
.gnode .gico { font-size: 1rem; margin-bottom: 5px; }
.gnode .gtype { font-size: .55rem; color: var(--orange); text-transform: uppercase; letter-spacing: .9px; font-weight: 800; }
.gnode .gname { font-size: .72rem; color: #fff; font-weight: 700; line-height: 1.3; margin-top: 2px; }
.gnode .gcap { font-size: .55rem; color: var(--muted-dim); font-family: var(--mono); margin-top: 5px; }
.gedge { stroke: rgba(255, 90, 0, .45); stroke-width: 2; fill: none; stroke-dasharray: 420; stroke-dashoffset: 420; transition: stroke-dashoffset .6s ease; }
.gedge.show { stroke-dashoffset: 0; }

/* ============================================================
   CARDS / GRIDS
   ============================================================ */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: var(--rad); padding: 30px 26px;
  position: relative; overflow: hidden; transition: all .35s;
}
.card::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(255, 90, 0, .09) 0%, transparent 70%); opacity: 0; transition: opacity .35s; pointer-events: none; }
.card:hover { border-color: var(--orange); transform: translateY(-7px); box-shadow: 0 20px 48px rgba(255, 90, 0, .18); }
.card:hover::before { opacity: 1; }
.card .ic { font-size: 1.85rem; margin-bottom: 16px; filter: drop-shadow(0 4px 10px var(--orange-glow)); }
.card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.card p { font-size: .93rem; margin: 0; }
.card .kicker { font-size: .58rem; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; }

.card.accent { background: linear-gradient(135deg, rgba(255, 90, 0, .07), rgba(255, 90, 0, .015)); border-color: var(--border-o); }

/* split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; margin-top: 62px; }
.split-txt > .eyebrow { margin-bottom: 14px; }
.split-txt h2 { margin-bottom: 18px; }
.split-txt p + p { margin-top: 14px; }
.split-fig { margin: 0; position: relative; }
/* A imagem fica NO TAMANHO INTEIRO da metade: a coluna tem a largura que
   tem, e a imagem ocupa-a toda. O 4/5 e o corte da foto — sem distorcao. */
.split-fig .split-img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: var(--rad); border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .7);
  background-size: cover; background-position: center;
}
.split-cap { margin-top: 13px; font-size: .82rem; color: var(--muted-dim); line-height: 1.55; text-align: center; }
/* A imagem à esquerda (o texto vai para a direita). */
.split--txt .split-fig { order: -1; }
/* No telemóvel: a imagem vai para baixo do texto, e com espaço. */
@media (max-width: 860px) {
  .split { gap: 30px; margin-top: 44px; }
  .split--txt .split-fig { order: 0; }
  .split-fig .split-img { aspect-ratio: 4/3; }
  .split-cap { text-align: left; }
}
.split.rev { direction: rtl; } .split.rev > * { direction: ltr; }
.split-img { border-radius: var(--rad); border: 1px solid var(--border); box-shadow: 0 24px 60px rgba(0, 0, 0, .7); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.split-list { margin: 20px 0 0; }
.split-list li { padding: 10px 0; color: var(--muted); display: flex; gap: 11px; font-size: .95rem; line-height: 1.6; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.split-list li:last-child { border: none; }
.split-list li i { color: var(--orange); font-style: normal; flex-shrink: 0; margin-top: 3px; }

/* ============================================================
   SECTORS
   ============================================================ */
.sector-grid-lg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.sector-tile { position: relative; border-radius: 13px; overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16/11; display: flex; align-items: flex-end; transition: all .35s; }
.sector-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; filter: grayscale(.25) brightness(.72); }
/* O ICONE DO SETOR. Sem fotografia: o sector identifica-se pelo
   simbolo, e o tile fica limpo em qualquer ecra (e carrega muito mais
   depressa). O gradiente da marca faz o fundo, e o icone o traço. */
.sector-ic {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 90, 0, .22), transparent 62%),
    linear-gradient(150deg, rgba(255, 90, 0, .12), rgba(255, 90, 0, .02) 70%);
  transition: transform .45s cubic-bezier(.4, 0, .2, 1), filter .45s;
}
.sector-tile:hover .sector-ic { transform: scale(1.1) translateY(-2px); filter: drop-shadow(0 6px 16px rgba(255, 90, 0, .35)); }
.sector-tile:hover img { transform: scale(1.07); filter: grayscale(0) brightness(.85); }
.sector-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, .92) 100%); }
.sector-tile .stx { position: relative; z-index: 2; padding: 13px; }
.sector-tile b { display: block; font-size: .88rem; color: #fff; font-weight: 700; }
.sector-tile span { font-size: .62rem; color: var(--orange); text-transform: uppercase; letter-spacing: .9px; font-weight: 700; }

/* ============================================================
   METRICS
   ============================================================ */
/* 3 colunas: com 6 numeros, duas linhas cheias. Com 4, a ultima
   linha ficava a meio e aparecia a cor de fundo da grelha nas celulas
   vazias. */
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--border); border: 1px solid var(--border); border-radius: var(--rad); overflow: hidden; }
.metric { background: var(--dark1); padding: 30px 22px; text-align: center; transition: background .3s; }
.metric:hover { background: var(--dark4); }
.metric .v { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; color: var(--orange); letter-spacing: -.03em; line-height: 1; }
.metric .l { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1.1px; font-weight: 700; margin-top: 10px; }
.metric .s { font-size: .72rem; color: var(--muted-dim); margin-top: 6px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-wrap { display: grid; grid-template-columns: 300px 1fr; gap: 46px; align-items: start; }
.faq-nav { position: sticky; top: calc(var(--nav-h) + 20px); }
.faq-nav h4 { font-size: .74rem; text-transform: uppercase; letter-spacing: 1.4px; color: var(--muted-dim); margin-bottom: 14px; }
.faq-nav a { display: block; font-size: .84rem; color: var(--muted); padding: 8px 12px; border-radius: 8px; border-left: 2px solid transparent; transition: all .25s; }
.faq-nav a:hover { color: var(--orange); border-left-color: var(--orange); background: rgba(255, 90, 0, .06); }

.faq-group { margin-bottom: 40px; }
.faq-group > h3 { font-size: 1.15rem; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.faq-group > h3 .gn { font-size: .62rem; color: var(--orange); background: rgba(255, 90, 0, .12); border: 1px solid rgba(255, 90, 0, .22); padding: 3px 9px; border-radius: 20px; font-weight: 800; letter-spacing: .6px; }

.faq-item { background: var(--glass); border: 1px solid var(--border); border-radius: var(--rad-sm); margin-bottom: 9px; overflow: hidden; transition: border-color .3s, background .3s; }
.faq-item.open { border-color: var(--border-o-strong); background: rgba(255, 90, 0, .045); }
.faq-q { width: 100%; text-align: left; background: none; border: none; color: var(--white); font-size: .96rem; font-weight: 600; padding: 16px 48px 16px 20px; cursor: pointer; position: relative; font-family: inherit; line-height: 1.5; }
.faq-q::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.35rem; color: var(--orange); font-weight: 300; transition: transform .3s; line-height: 1; }
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .45s cubic-bezier(.22,.61,.36,1); }
.faq-a-in { padding: 0 20px 18px; font-size: .93rem; color: var(--muted); line-height: 1.78; }
.faq-a-in p { font-size: .93rem; margin-bottom: 10px; }
.faq-a-in p:last-child { margin-bottom: 0; }
.faq-a-in ul { margin: 10px 0; }
.faq-a-in li { padding-left: 18px; position: relative; margin-bottom: 7px; font-size: .92rem; }
.faq-a-in li::before { content: '▸'; position: absolute; left: 0; color: var(--orange); }
.faq-a-in .note { margin-top: 12px; padding: 11px 14px; border-left: 3px solid var(--orange); background: rgba(255, 90, 0, .07); border-radius: 0 8px 8px 0; font-size: .86rem; color: var(--muted); }
.faq-a-in .note b { color: var(--orange); }

/* ============================================================
   EMILIA / OWNER
   ============================================================ */
.owner-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.owner-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.owner-photos img { border-radius: 14px; border: 1px solid var(--border); width: 100%; object-fit: cover; box-shadow: 0 18px 44px rgba(0, 0, 0, .6); }
.owner-photos img:nth-child(1) { aspect-ratio: 3/4; }
.owner-photos img:nth-child(2) { aspect-ratio: 3/4; margin-top: 26px; }
.owner-quote { border-left: 3px solid var(--orange); padding-left: 24px; margin: 26px 0; }
.owner-quote p { font-size: 1.12rem; color: #e8e8e8; line-height: 1.65; font-style: italic; }
.owner-sign { display: flex; align-items: center; gap: 13px; margin-top: 20px; }
.owner-sign img { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--orange); object-fit: cover; }
.owner-sign b { display: block; font-size: .95rem; }
.owner-sign span { font-size: .74rem; color: var(--orange); text-transform: uppercase; letter-spacing: 1.1px; font-weight: 700; }

/* ============================================================
   CTA
   ============================================================ */
.cta-box { background: linear-gradient(135deg, rgba(255, 90, 0, .1), rgba(255, 90, 0, .025)); border: 1px solid var(--border-o); border-radius: var(--rad-lg); padding: 66px 48px; text-align: center; position: relative; overflow: hidden; box-shadow: 0 0 70px rgba(255, 90, 0, .08), inset 0 1px 0 rgba(255, 90, 0, .12); }
.cta-box::before { content: ''; position: absolute; top: -60%; right: -40%; width: 110%; height: 160%; background: radial-gradient(circle, rgba(255, 90, 0, .08) 0%, transparent 62%); animation: ctaSpin 26s linear infinite; pointer-events: none; }
@keyframes ctaSpin { to { transform: rotate(360deg) } }
.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 { margin-bottom: 18px; }
.cta-box p { max-width: 640px; margin: 0 auto 32px; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { border-top: 1px solid var(--border); background: var(--dark1); padding: 60px 0 30px; position: relative; z-index: 1; }
.f-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.f-brand img { height: 48px; margin-bottom: 16px; }
.f-brand p { font-size: .86rem; max-width: 320px; }
.f-col h5 { font-size: .72rem; text-transform: uppercase; letter-spacing: 1.4px; color: var(--orange); margin-bottom: 14px; font-weight: 800; }
.f-col a, .f-col span { display: block; font-size: .87rem; color: var(--muted); padding: 4px 0; }
.f-col a:hover { color: var(--orange); }
.f-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.f-bottom p { font-size: .78rem; color: var(--muted-dim); }
.f-bottom .tagline { font-family: var(--mono); font-size: .78rem; color: var(--orange); }

/* scroll to top */
.to-top { position: fixed; right: 24px; bottom: 24px; width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; z-index: 9000; box-shadow: 0 6px 22px var(--orange-glow); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 46px; }
  .hero-sub { max-width: 100%; }
  .g4, .metrics, .sector-grid-lg { grid-template-columns: repeat(2, 1fr); }
  .pipe-track { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .pipe-track::before, .pipe-fill-line { display: none; }
  .faq-wrap { grid-template-columns: 1fr; }
  .faq-nav { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .faq-nav h4 { width: 100%; }
  .faq-nav a { border-left: none; border: 1px solid var(--border); border-radius: 50px; padding: 6px 13px; font-size: .78rem; }
  .f-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .burger { display: flex; align-items: center; justify-content: center; }
  .mobile-menu { display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; background: rgba(5, 5, 5, .985); border-bottom: 1px solid var(--border); padding: 18px 24px 26px; z-index: 9999; backdrop-filter: blur(20px); }
  .mobile-menu.open { display: block; animation: fadeUp .3s; }
  .mobile-menu a { display: block; padding: 12px 4px; color: var(--muted); font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, .05); font-size: .95rem; }
  .mobile-menu a:last-of-type { border: none; }
  .mobile-menu .nav-cta { display: inline-flex; margin-top: 18px; }
  .section { padding: 72px 0; }
  .split, .owner-grid { grid-template-columns: 1fr; gap: 40px; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .mk-body { grid-template-columns: 1fr; }
  .mk-side { display: none; }
  .sector-grid, .stat-row, .router-grid { grid-template-columns: 1fr 1fr; }
  .wf-grid { grid-template-columns: 1fr 1fr; }
  .mk-form { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .cma-box { padding: 44px 24px; }
  .cta-box { padding: 46px 24px; }
  .pipe-track { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .g4, .metrics, .sector-grid-lg, .f-grid { grid-template-columns: 1fr; }
  .wf-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .pipe-track { grid-template-columns: 1fr; }
  .brand-txt { display: none; }
  .owner-photos { grid-template-columns: 1fr 1fr; }
  .canvas-graph { min-height: 520px; }
  .gnode { width: 138px; }
}

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


/* ══════════════════════════════════════════════════════════════════════
   AS MUDANÇAS DA VERSÃO COMERCIAL
   - a faixa de CTA entre secções
   - a bolha do WhatsApp (o CTA que acompanha a leitura)
   - o rodapé
   - o manual das telas (a FAQ com navegação lateral)
   ══════════════════════════════════════════════════════════════════════ */

/* ---------- A FAIXA DE CTA ---------- */
.cta-band {
  position: relative;
  padding: 54px 0;
  background:
    linear-gradient(135deg, rgba(255, 90, 0, .10), rgba(255, 90, 0, .02) 58%, transparent),
    var(--dark1);
  border-top: 1px solid var(--border-o);
  border-bottom: 1px solid var(--border-o);
}
.cta-band-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 26px; flex-wrap: wrap;
}
.cta-band h3 { font-size: clamp(1.2rem, 2.3vw, 1.65rem); margin-bottom: 8px; }
.cta-band h3 i { color: var(--orange); font-style: normal; }
.cta-band p { font-size: .95rem; max-width: 560px; }
.cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- A BOLHA DO WHATSAPP ---------- */
.wa-bubble {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 10020;
  width: 58px; height: 58px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  box-shadow: 0 10px 30px rgba(37, 211, 102, .38), 0 2px 8px rgba(0, 0, 0, .4);
  transition: transform .25s, box-shadow .25s;
}
.wa-bubble:hover { transform: scale(1.08); box-shadow: 0 14px 40px rgba(37, 211, 102, .5); }
.wa-bubble svg { position: relative; z-index: 2; }
/* O anel que pulsa — chama o olho sem gritar. */
.wa-bubble-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, .55);
  animation: waPulse 2.6s ease-out infinite;
}
@keyframes waPulse {
  0%   { transform: scale(1);    opacity: .75; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}
/* A etiqueta que aparece ao passar o rato. */
.wa-bubble-tip {
  position: absolute; right: calc(100% + 12px); top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--dark5);
  border: 1px solid var(--border);
  color: #fff;
  font-size: .78rem; font-weight: 700;
  padding: 9px 14px;
  border-radius: 10px;
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .22s, transform .22s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
}
.wa-bubble:hover .wa-bubble-tip { opacity: 1; transform: translateY(-50%) translateX(0); }
@media (max-width: 560px) {
  .wa-bubble { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .wa-bubble-tip { display: none; }
}

/* ---------- O RODAPÉ ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--black);
  padding: 30px 0;
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-left { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: .8rem; color: var(--muted-dim); }
.footer-left > span:first-child { color: var(--orange); font-weight: 800; letter-spacing: .04em; }
.footer-sep { opacity: .45; }
.footer-right { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-right a { font-size: .8rem; color: var(--muted); font-weight: 600; }
.footer-right a:hover { color: var(--orange); }

/* ---------- A FAQ (manual) ---------- */
.faq-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 54px; align-items: start; }
.faq-nav {
  position: sticky; top: calc(var(--nav-h) + 22px);
  display: flex; flex-direction: column; gap: 3px;
}
.faq-nav-title { font-size: .68rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted-dim); font-weight: 800; margin-bottom: 12px; }
.faq-nav-item { font-size: .84rem; color: var(--muted); padding: 8px 11px; border-radius: 9px; font-weight: 600; }
.faq-nav-item:hover, .faq-nav-item.on { color: var(--orange); background: rgba(255, 90, 0, .08); }
.faq-content { min-width: 0; }
.faq-group { margin-bottom: 40px; scroll-margin-top: calc(var(--nav-h) + 20px); }
.faq-group-title {
  font-size: .72rem; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--orange); font-weight: 800; margin-bottom: 16px;
}
@media (max-width: 900px) {
  .faq-wrap { grid-template-columns: 1fr; gap: 26px; }
  .faq-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .faq-nav-title { width: 100%; margin-bottom: 4px; }
}

/* ---------- A FOTO DA EMÍLIA ---------- */
.owner-fig { margin: 0; border-radius: var(--rad); overflow: hidden; border: 1px solid var(--border); box-shadow: 0 24px 60px rgba(0, 0, 0, .7); }
.owner-fig img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; }

/* ---------- O MODIFICADOR DA METADE ---------- */
.split--img .split-fig { order: 2; }
@media (max-width: 860px) { .split--img .split-fig { order: 0; } }

/* ══════════════════════════════════════════════════════════════════════
   O CATÁLOGO (a biblioteca de workflows)
   ══════════════════════════════════════════════════════════════════════ */

  #catalogo /* ── Catalog page styles (inside shell #content) ── */
  :root{
    --we-orange: #FF5A00;
    --we-orange-soft: rgba(255, 90, 0, 0.12);
    --we-orange-glow: rgba(255, 90, 0, 0.35);
  }

  #catalogo .catalog-wrap{ padding: 4px 0 24px; }

  #catalogo /* Hero / header */
  .catalog-hero{
    background: linear-gradient(135deg, rgba(255,90,0,0.10) 0%, rgba(255,90,0,0.02) 60%, transparent 100%);
    border: 1px solid rgba(255,90,0,0.25);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    margin-bottom: 18px;
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  }
  #catalogo .catalog-hero .hero-icon{
    font-size: 34px; line-height: 1; flex-shrink: 0;
    filter: drop-shadow(0 0 10px var(--we-orange-glow));
  }
  #catalogo .catalog-hero .hero-text{ flex: 1; min-width: 200px; }
  #catalogo .catalog-hero h1{
    font-size: 20px; margin: 0 0 4px; font-weight: 700; letter-spacing: -0.01em;
    color: var(--text-primary);
  }
  #catalogo .catalog-hero p{ font-size: 13px; margin: 0; color: var(--text-secondary); }

  #catalogo /* Stats row */
  .stats-row{
    display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap;
  }
  #catalogo .stat-pill{
    background: var(--bg-tertiary); border: 1px solid var(--border);
    border-radius: var(--radius-full); padding: 7px 14px;
    display: flex; align-items: center; gap: 8px; font-size: 12px;
    color: var(--text-secondary);
  }
  #catalogo .stat-pill .num{ font-weight: 700; color: var(--we-orange); font-size: 14px; }
  #catalogo .stat-pill .lbl{ color: var(--text-tertiary); }

  #catalogo /* Toolbar (search + filters) */
  .catalog-toolbar{
    display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
    margin-bottom: 14px;
  }
  #catalogo .search-box{
    flex: 1; min-width: 200px; position: relative;
  }
  #catalogo .search-box input{
    width: 100%; box-sizing: border-box;
    background: var(--bg-tertiary); border: 1px solid var(--border);
    color: var(--text-primary); padding: 9px 12px 9px 34px;
    border-radius: var(--radius-md); font-size: 13px; font-family: inherit;
  }
  #catalogo .search-box input:focus{ outline: none; border-color: var(--we-orange); }
  #catalogo .search-box .search-icon{
    position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
    font-size: 14px; color: var(--text-tertiary); pointer-events: none;
  }
  #catalogo .catalog-toolbar select{
    background: var(--bg-tertiary); border: 1px solid var(--border);
    color: var(--text-primary); padding: 9px 12px; border-radius: var(--radius-md);
    font-size: 13px; font-family: inherit; cursor: pointer;
  }
  #catalogo .catalog-toolbar select:focus{ outline: none; border-color: var(--we-orange); }

  #catalogo /* Tag chips */
  .tag-filters{
    display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px;
  }
  #catalogo .tag-chip{
    background: var(--bg-tertiary); border: 1px solid var(--border);
    color: var(--text-secondary); padding: 5px 11px; border-radius: var(--radius-full);
    font-size: 11px; cursor: pointer; transition: all 0.15s ease;
    user-select: none;
  }
  #catalogo .tag-chip:hover{ border-color: var(--we-orange); color: var(--text-primary); }
  #catalogo .tag-chip.active{
    background: var(--we-orange-soft); border-color: var(--we-orange);
    color: var(--we-orange); font-weight: 600;
  }

  #catalogo /* Grid */
  .grid{
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
  }
  #catalogo .card{
    background: var(--bg-secondary); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 16px;
    transition: all 0.18s ease; cursor: pointer; position: relative; overflow: hidden;
  }
  #catalogo .card::before{
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--we-orange), transparent);
    opacity: 0; transition: opacity 0.18s ease;
  }
  #catalogo .card:hover{
    border-color: rgba(255,90,0,0.4); transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  }
  #catalogo .card:hover::before{ opacity: 1; }
  #catalogo .card h3{
    font-size: 15px; margin: 0 0 8px; font-weight: 600; color: var(--text-primary);
    line-height: 1.3;
  }
  #catalogo .card .desc{
    font-size: 12px; color: var(--text-secondary); margin: 0 0 12px;
    line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
  }
  #catalogo .card .meta{
    display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px;
  }
  #catalogo .badge{
    font-size: 10px; padding: 3px 8px; border-radius: var(--radius-full);
    font-weight: 600; letter-spacing: 0.02em;
  }
  #catalogo .badge-sector{ background: var(--we-orange-soft); color: var(--we-orange); }
  #catalogo .badge-nodes{ background: var(--bg-tertiary); color: var(--text-tertiary); border: 1px solid var(--border); }
  #catalogo .card .actions{ display: flex; gap: 8px; }
  #catalogo .btn{
    flex: 1; padding: 8px 12px; border-radius: var(--radius-md);
    font-size: 12px; font-weight: 600; cursor: pointer; border: none;
    font-family: inherit; transition: all 0.15s ease;
  }
  #catalogo .btn-primary{
    background: var(--we-orange); color: #fff;
  }
  #catalogo .btn-primary:hover{ background: #ff6a1a; box-shadow: 0 4px 12px var(--we-orange-glow); }
  #catalogo .btn-ghost{
    background: transparent; border: 1px solid var(--border); color: var(--text-secondary);
  }
  #catalogo .btn-ghost:hover{ border-color: var(--we-orange); color: var(--text-primary); }

  #catalogo /* Loading / empty states */
  .loading,
#catalogo .empty{
    grid-column: 1 / -1; text-align: center; padding: 48px 20px;
    color: var(--text-tertiary);
  }
  #catalogo .loading .spinner,
#catalogo .empty .icon{
    font-size: 32px; margin-bottom: 12px;
  }

  #catalogo /* ── Detail modal ── */
  .modal-overlay{
    position: fixed; inset: 0; background: rgba(0,0,0,0.65);
    display: flex; align-items: center; justify-content: center; z-index: 9999;
    backdrop-filter: blur(4px); animation: fadeIn 0.15s ease;
  }
  @keyframes fadeIn{ from { opacity: 0; } to { opacity: 1; } }
  #catalogo .modal-card{
    background: var(--bg-secondary); border: 1px solid var(--border);
    border-radius: var(--radius-lg); max-width: 560px; width: 92%; max-height: 85vh;
    overflow-y: auto; box-shadow: 0 24px 64px rgba(0,0,0,0.5);
    animation: slideUp 0.2s ease;
  }
  @keyframes slideUp{ from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
  #catalogo .modal-header{
    padding: 18px 20px 14px; border-bottom: 1px solid var(--border);
    display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  }
  #catalogo .modal-header h2{ font-size: 17px; margin: 0; font-weight: 700; color: var(--text-primary); line-height: 1.3; }
  #catalogo .modal-close{
    background: none; border: none; color: var(--text-tertiary); font-size: 20px;
    cursor: pointer; padding: 0; line-height: 1; flex-shrink: 0;
  }
  #catalogo .modal-close:hover{ color: var(--text-primary); }
  #catalogo .modal-body{ padding: 16px 20px; }
  #catalogo .modal-body .section{ margin-bottom: 16px; }
  #catalogo .modal-body .section-label{
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--text-tertiary); margin-bottom: 6px; font-weight: 600;
  }
  #catalogo .modal-body .section-value{ font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
  #catalogo .modal-body .desc-box{
    background: var(--bg-tertiary); border-radius: var(--radius-md); padding: 12px;
    font-size: 13px; color: var(--text-secondary); line-height: 1.6;
  }
  #catalogo .modal-badges{ display: flex; gap: 6px; flex-wrap: wrap; }
  #catalogo .modal-actions{
    padding: 14px 20px; border-top: 1px solid var(--border);
    display: flex; gap: 10px; justify-content: flex-end;
  }

  #catalogo /* ── Import result toast with hyperlink ── */
  .toast .import-link{
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.15); padding: 4px 10px; border-radius: var(--radius-md);
    color: #fff; text-decoration: none; font-weight: 600; font-size: 12px;
    margin-left: 8px; transition: background 0.15s ease;
  }
  #catalogo .toast .import-link:hover{ background: rgba(255,255,255,0.25); }
  #catalogo .toast .copy-btn{
    background: none; border: 1px solid rgba(255,255,255,0.3); color: rgba(255,255,255,0.8);
    padding: 3px 8px; border-radius: var(--radius-sm); cursor: pointer; font-size: 11px;
    margin-left: 6px; transition: all 0.15s ease;
  }
  #catalogo .toast .copy-btn:hover{ border-color: rgba(255,255,255,0.6); color: #fff; }
  #catalogo .empty p{ margin: 4px 0; font-size: 14px; }

  #catalogo /* Pagination */
  .pagination{
    display: flex; justify-content: center; align-items: center; gap: 14px;
    margin-top: 22px;
  }
  #catalogo .pagination button{
    background: var(--bg-tertiary); border: 1px solid var(--border);
    color: var(--text-primary); padding: 8px 16px; border-radius: var(--radius-md);
    font-size: 13px; cursor: pointer; font-family: inherit;
  }
  #catalogo .pagination button:disabled{ opacity: 0.4; cursor: not-allowed; }
  #catalogo .pagination button:not(:disabled):hover{ border-color: var(--we-orange); }
  #catalogo .pagination .info{ font-size: 12px; color: var(--text-secondary); }

  #catalogo /* Toast */
  .toast{
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(80px);
    background: var(--bg-secondary); border: 1px solid var(--border);
    color: var(--text-primary); padding: 12px 20px; border-radius: var(--radius-md);
    font-size: 13px; z-index: 1000; opacity: 0; transition: all 0.3s ease;
    max-width: 90vw; white-space: pre-line; text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  }
  #catalogo .toast.show{ opacity: 1; transform: translateX(-50%) translateY(0); }
  #catalogo .toast.success{ border-color: var(--we-orange); }
  #catalogo .toast.error{ border-color: #ff4d4d; }

  #catalogo /* Tablet (portrait) — 2 colunas,
#catalogo toolbar reflow */
  @media (max-width: 1024px){
    .grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
    .catalog-hero { padding: 16px 18px; }
  }
  #catalogo /* Mobile grande (celular paisagem / tablet pequeno) */
  @media (max-width: 768px){
    .catalog-wrap { padding: 12px; }
    .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .catalog-hero {
      flex-direction: column; text-align: center; padding: 14px 16px; gap: 8px;
    }
    .hero-icon { font-size: 28px; }
    .catalog-hero h1 { font-size: 16px; }
    .catalog-hero p { font-size: 12px; }
    .stats-row { justify-content: center; }
    .catalog-toolbar {
      flex-direction: column; align-items: stretch; gap: 8px;
    }
    .search-box { min-width: 0; }
    .catalog-toolbar select { width: 100%; }
    .tag-filters { justify-content: center; }
  }
  #catalogo /* Celular (retrato) — 1 coluna */
  @media (max-width: 540px){
    .grid { grid-template-columns: 1fr; }
    .card { padding: 14px; }
    .card h3 { font-size: 14px; }
    .card .desc { font-size: 12px; -webkit-line-clamp: 3; }
    .card .actions { flex-direction: column; gap: 6px; }
    .card .actions .btn { width: 100%; padding: 10px; }
    .stat-pill { padding: 6px 10px; font-size: 11px; }
    .stat-pill .num { font-size: 13px; }
    .pagination { flex-wrap: wrap; gap: 8px; }
    .pagination button { padding: 9px 14px; font-size: 12px; }
    .toast { bottom: 14px; font-size: 12px; padding: 10px 16px; }
  }
  #catalogo /* Celular pequeno */
  @media (max-width: 380px){
    .catalog-hero h1 { font-size: 15px; }
    .stat-pill { padding: 5px 9px; }
  }
  #catalogo /* Safe-area iOS (notch) */
  @supports (padding: max(0px)){
    .toast {
      bottom: calc(14px + env(safe-area-inset-bottom));
    }
    .catalog-wrap {
      padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }
  }


/* ── O MODAL DE DETALHE (dentro do #catalogo) ────────────────────────────
   O detalhe mostra o que o workflow FAZ: as fases (os containers, que
   explicam cada etapa) e todas as acoes. O endpoint dos metadados nao
   tem descricao nenhuma — por isso o detalhe "nao falava nada". */
#catalogo .cat-modal-overlay {
  position: fixed; inset: 0; z-index: 12000;
  background: rgba(0, 0, 0, .78);
  display: grid; place-items: center;
  padding: 20px;
  animation: catFade .18s ease;
}
@keyframes catFade { from { opacity: 0 } to { opacity: 1 } }
#catalogo .cat-modal-card {
  width: min(760px, 100%);
  max-height: min(86vh, 780px);
  display: flex; flex-direction: column;
  background: var(--bg-secondary, #11111c);
  border: 1px solid var(--border, #2a2a2a);
  border-radius: var(--rad-lg, 26px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .7);
  overflow: hidden;
}
#catalogo .cat-modal-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--border, #2a2a2a);
}
#catalogo .cat-modal-header h2 { font-size: 1.1rem; line-height: 1.35; }
#catalogo .cat-modal-close {
  background: none; border: none; color: var(--text-muted, #6a6a6a);
  font-size: 1.2rem; cursor: pointer; padding: 2px 8px; line-height: 1; flex: none;
}
#catalogo .cat-modal-close:hover { color: var(--accent, #ff5a00); }
#catalogo .cat-modal-body { padding: 20px 22px 24px; overflow-y: auto; }
#catalogo .cat-mstats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
#catalogo .cat-mstat {
  background: var(--bg-tertiary, #1a1a28); border: 1px solid var(--border, #2a2a2a);
  border-radius: 12px; padding: 9px 15px; text-align: center; flex: 1 1 90px;
}
#catalogo .cat-mstat .v { font-size: 1.15rem; font-weight: 800; color: var(--accent, #ff5a00); }
#catalogo .cat-mstat .l { font-size: .62rem; color: var(--text-muted, #6a6a6a); text-transform: uppercase; letter-spacing: .8px; }
#catalogo .cat-sec-label {
  font-size: .68rem; font-weight: 800; letter-spacing: 1.1px; text-transform: uppercase;
  color: var(--text-muted, #6a6a6a); margin: 0 0 9px;
}
#catalogo .cat-cred-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
#catalogo .cat-cred-badge {
  background: var(--accent-bg, rgba(255,90,0,.12)); border: 1px solid var(--accent, #ff5a00);
  padding: 3px 9px; border-radius: 999px; font-size: .66rem; color: var(--accent, #ff5a00);
}
#catalogo .cat-containers { display: flex; flex-direction: column; gap: 10px; }
#catalogo .cat-container {
  background: var(--bg-tertiary, #1a1a28); border-radius: 12px;
  padding: 13px 15px; border-left: 3px solid var(--accent, #ff5a00);
}
#catalogo .cat-container h4 { font-size: .86rem; margin: 0 0 5px; color: #fff; }
#catalogo .cat-container p { font-size: .78rem; color: var(--text-secondary, #9a9a9a); margin: 0; line-height: 1.55; }
#catalogo .cat-nodeflow { display: flex; flex-wrap: wrap; gap: 5px; }
#catalogo .cat-node-tag {
  background: var(--bg-tertiary, #1a1a28); border: 1px solid var(--border, #2a2a2a);
  padding: 3px 9px; border-radius: 999px; font-size: .68rem; color: var(--text-secondary, #9a9a9a);
}
#catalogo .cat-modal-acoes { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
#catalogo .cat-mbtn {
  flex: 1 1 180px; padding: 12px 18px; border-radius: 12px; cursor: pointer;
  background: transparent; color: var(--text-primary, #f5f5f5);
  border: 1px solid var(--border, #2a2a2a); font-size: .84rem; font-weight: 700; font-family: inherit;
}
#catalogo .cat-mbtn:hover { border-color: var(--accent, #ff5a00); color: var(--accent, #ff5a00); }
#catalogo .cat-mbtn-pri {
  background: linear-gradient(135deg, var(--accent, #ff5a00), #ff8a3d);
  color: #fff; border-color: transparent;
}
#catalogo .cat-mbtn-pri:hover { filter: brightness(1.08); color: #fff; }

/* ══════════════════════════════════════════════════════════════════════
   A BIBLIOTECA (a vitrine das rotinas prontas)
   ══════════════════════════════════════════════════════════════════════ */
#catalogo .cat-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
#catalogo .cat-stat {
  background: rgba(255, 255, 255, .03); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 18px; min-width: 110px;
}
#catalogo .cat-stat .v { display: block; font-size: 1.3rem; font-weight: 800; color: var(--accent); line-height: 1.2; }
#catalogo .cat-stat .l { font-size: .64rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1.1px; }
#catalogo .cat-toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
#catalogo .cat-search {
  flex: 1 1 320px; display: flex; align-items: center; gap: 9px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--border);
  border-radius: 12px; padding: 0 14px; height: 46px;
}
#catalogo .cat-search input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text-primary); font-size: .92rem; font-family: inherit;
}
#catalogo .cat-toolbar select {
  background: rgba(255, 255, 255, .04); border: 1px solid var(--border);
  border-radius: 12px; height: 46px; padding: 0 14px;
  color: var(--text-primary); font-size: .88rem; font-family: inherit;
}
#catalogo .cat-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
#catalogo .cat-tag {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255, 255, 255, .03);
  color: var(--muted); font-size: .74rem; cursor: pointer; transition: all .2s;
}
#catalogo .cat-tag:hover { color: var(--accent); border-color: var(--border-o); }
#catalogo .cat-tag.active { background: var(--accent-bg); border-color: var(--accent); color: var(--accent); }
#catalogo .cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
#catalogo .cat-card {
  background: rgba(255, 255, 255, .028); border: 1px solid var(--border);
  border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .25s, border-color .25s, background .25s;
}
#catalogo .cat-card:hover { transform: translateY(-3px); border-color: var(--border-o); background: rgba(255, 255, 255, .045); }
#catalogo .cat-card h3 { font-size: .98rem; line-height: 1.4; }
#catalogo .cat-card .meta { display: flex; flex-wrap: wrap; gap: 6px; }
#catalogo .cat-badge {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--border); font-size: .66rem; color: var(--muted);
}
#catalogo .cat-badge-setor { color: var(--accent); border-color: var(--border-o); background: var(--accent-bg); text-transform: uppercase; letter-spacing: .8px; }
#catalogo .cat-card .actions { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }
#catalogo .cat-card .actions .btn { padding: 9px 15px; font-size: .72rem; }
#catalogo .cat-vazio {
  grid-column: 1 / -1; text-align: center; padding: 52px 20px;
  color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 12px;
}
#catalogo .cat-vazio-sub { font-size: .82rem; color: var(--muted-dim); }
#catalogo .cat-spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 3px solid var(--border); border-top-color: var(--accent);
  animation: catSpin .8s linear infinite; display: inline-block;
}
@keyframes catSpin { to { transform: rotate(360deg) } }
#catalogo .cat-pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 26px; }
#catalogo .cat-pagination button {
  background: rgba(255, 255, 255, .04); border: 1px solid var(--border);
  color: var(--text-primary); border-radius: 10px; padding: 9px 16px;
  font-size: .82rem; cursor: pointer; font-family: inherit;
}
#catalogo .cat-pagination button:disabled { opacity: .35; cursor: default; }
#catalogo .cat-pagination span { font-size: .82rem; color: var(--muted); }
#catalogo .cat-toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px);
  background: var(--dark5); border: 1px solid var(--border); color: #fff;
  padding: 13px 20px; border-radius: 12px; font-size: .86rem;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 12050;
  max-width: min(92vw, 520px); text-align: center;
}
#catalogo .cat-toast.show { opacity: 1; transform: translate(-50%, 0); }
#catalogo .cat-toast.success { border-color: rgba(34, 197, 94, .45); }
#catalogo .cat-toast.error { border-color: rgba(255, 91, 91, .45); }
#catalogo .cat-nota { font-size: .86rem; color: var(--muted); }
@media (max-width: 620px) {
  #catalogo .cat-grid { grid-template-columns: 1fr; }
  #catalogo .cat-toolbar { flex-direction: column; }
  #catalogo .cat-search, #catalogo .cat-toolbar select { width: 100%; }
}


/* ══════════════════════════════════════════════════════════════════════
   O RODAPÉ (com os temas que as pessoas pesquisam)
   ══════════════════════════════════════════════════════════════════════ */
.footer { border-top: 1px solid var(--border); background: var(--black); padding: 54px 0 40px; }
.footer-inner { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 34px; align-items: start; }
.footer-ident .footer-name { font-size: 1rem; color: #fff; font-weight: 800; }
.footer-ident .footer-tag { font-size: .8rem; color: var(--muted); margin-top: 5px; }
.footer-ident .footer-contact { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-top: 14px; font-size: .82rem; }
.footer-ident .footer-contact a { color: var(--accent); font-weight: 600; }
.footer-ident .footer-contact a:hover { text-decoration: underline; }
.footer-ident .footer-contact span { color: var(--muted-dim); }
.footer-h { font-size: .68rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted-dim); font-weight: 800; margin-bottom: 12px; }
.footer-nav ul, .footer-topicos ul { list-style: none; padding: 0; margin: 0; }
.footer-nav li, .footer-topicos li { margin-bottom: 7px; }
.footer-nav a, .footer-topicos a { font-size: .82rem; color: var(--muted); }
.footer-nav a:hover, .footer-topicos a:hover { color: var(--accent); }
.footer-topicos { grid-column: 1 / -1; border-top: 1px solid var(--border); padding-top: 26px; margin-top: 8px; }
.footer-topicos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px 22px; }
.footer-topicos-grid strong { display: block; font-size: .64rem; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted-dim); margin-bottom: 6px; }
.footer-legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 20px; margin-top: 10px; font-size: .76rem; color: var(--muted-dim); }
.footer-legal-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-legal a { color: var(--muted-dim); }
.footer-legal a:hover { color: var(--accent); }
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

/* O "resumo em poucas linhas" — o paragrafo que uma IA generativa cita
   sem contexto. Por isso fica logo a seguir ao subtitulo. */
.hero-resumo {
  max-width: 640px;
  margin: 20px 0 0;
  padding: 14px 18px;
  border-left: 3px solid var(--accent, #ff5a00);
  border-radius: 0 12px 12px 0;
  background: rgba(255, 90, 0, .06);
  font-size: .92rem;
  line-height: 1.7;
  color: var(--muted);
}
