/* =========================================================
   byflows — SaaS de atendimento WhatsApp com IA
   Dark emerald · liquid bg · premium polish · octopus mascot
   ========================================================= */
:root {
  --bg-0: #020e08;
  --bg-1: #04140c;
  --bg-2: #072015;
  --bg-3: #0a2a1a;
  --ink-0: #eaf6ec;
  --ink-1: #c4ddcc;
  --ink-2: #82a08e;
  --ink-3: #4a6656;
  --accent: #4fd693;
  --accent-2: #7ee9b1;
  --accent-3: #a8f0c9;
  --accent-deep: #1f7a4c;
  --accent-soft: rgba(79, 214, 147, 0.14);
  --rule: rgba(200, 230, 210, 0.10);
  --rule-strong: rgba(200, 230, 210, 0.22);
  --whatsapp: #25d366;
  --shadow-card: 0 30px 80px -30px rgba(0,0,0,0.7), 0 8px 24px -8px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 60px -12px rgba(79,214,147,0.32);

  --font-display: "Instrument Serif", "Times New Roman", Georgia, serif;
  --font-sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; background: var(--bg-0); color: var(--ink-0); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--bg-0); }

/* ========== GLOBAL LIQUID BG ========== */
#liquid-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  filter: saturate(1.12) contrast(1.02);
}
.app { position: relative; z-index: 1; }

/* Sections that should "kill" liquid visually behind them */
.pause-liquid { position: relative; }
.pause-liquid::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(2,14,8,0.18) 0%, rgba(2,14,8,0.38) 30%, rgba(2,14,8,0.40) 70%, rgba(2,14,8,0.18) 100%);
  z-index: -1;
  pointer-events: none;
}
/* Generic per-section subtle dim under content */
section:not(.pause-liquid)::before, footer::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(2,14,8,0.30) 0%, rgba(2,14,8,0.56) 60%, rgba(2,14,8,0.30) 100%);
  z-index: -1;
  pointer-events: none;
}
section, footer, header.hero { position: relative; }
header.hero::before {
  content: "";
  position: absolute;
  inset: -18%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 70%, rgba(79, 214, 147, 0.18), transparent 36%),
    radial-gradient(ellipse at 72% 30%, rgba(126, 233, 177, 0.12), transparent 40%),
    conic-gradient(from 160deg at 54% 54%, transparent 0deg, rgba(79, 214, 147, 0.10) 64deg, transparent 132deg, rgba(31, 122, 76, 0.12) 214deg, transparent 310deg);
  filter: blur(38px) saturate(1.22);
  opacity: 0.86;
  transform: translate3d(0, 0, 0) rotate(0deg) scale(1.04);
  animation: heroLiquidDrift 16s ease-in-out infinite alternate;
}
@keyframes heroLiquidDrift {
  0% { transform: translate3d(-2%, 1%, 0) rotate(-3deg) scale(1.04); }
  50% { transform: translate3d(2%, -2%, 0) rotate(3deg) scale(1.08); }
  100% { transform: translate3d(0, 2%, 0) rotate(-1deg) scale(1.05); }
}

/* ========== Layout primitives ========== */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; position: relative; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 8px var(--accent); }
  50% { box-shadow: 0 0 14px var(--accent), 0 0 22px rgba(79,214,147,0.6); }
}

/* ========== Nav ========== */
.nav {
  position: fixed; inset: 0 0 auto 0;
  z-index: 50;
  padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  transition: all .3s ease;
}
.nav.scrolled {
  padding: 12px 32px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(2,14,8,0.78);
  border-bottom: 1px solid var(--rule);
}
.nav .brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: -0.01em;
}
.nav .brand b { font-weight: 400; }
.nav .brand b em { font-style: normal; color: var(--accent); }
.brand-glyph { display: inline-flex; align-items: center; }
.nav .brand-glyph img { width: 30px; height: 30px; object-fit: contain; filter: drop-shadow(0 0 12px rgba(79,214,147,0.45)); }
.foot-brand .brand-glyph img { width: 36px; height: 36px; }

.nav ul { list-style: none; display: flex; gap: 24px; }
.nav ul a {
  font-size: 13px;
  color: var(--ink-1);
  opacity: 0.78;
  transition: opacity .2s, color .2s;
}
.nav ul a:hover { opacity: 1; color: var(--accent-2); }
.nav .cta-group { display: flex; align-items: center; gap: 10px; }
@media (max-width: 1000px) { .nav ul { display: none; } }
@media (max-width: 560px) { .nav .cta-group .btn-ghost { display: none; } }
@media (max-width: 560px) {
  .container { padding: 0 24px; }
  .nav { padding: 14px 20px; gap: 12px; }
  .nav .brand { font-size: 23px; }
  .nav .brand-glyph img { width: 28px; height: 28px; }
}

/* Não havia nenhuma regra de foco: quem navega por teclado dependia do outline
   padrão do browser, que some nos controles customizados deste layout. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ========== Menu de telas menores ==========
   Até 1000px a lista do nav é escondida (acima) e até 560px o "Entrar" também.
   Sem um botão de menu o header ficava sem nenhuma navegação. O drawer devolve
   as seções e o CTA sem mexer no layout do desktop. */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  flex-shrink: 0;
  align-items: center; justify-content: center;
  background: rgba(200, 230, 210, 0.05);
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  color: var(--ink-0);
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.nav-toggle:hover { background: rgba(79, 214, 147, 0.12); border-color: var(--accent); }
.nav-toggle-bars { display: grid; gap: 5px; width: 18px; }
.nav-toggle-bars i {
  display: block; height: 1.5px; width: 100%;
  background: currentColor; border-radius: 2px;
  transition: transform .28s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-drawer {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 49;
  padding: 88px 20px 24px;
  /* Opaco de propósito: o perf-lite desliga backdrop-filter, e com qualquer
     transparência o título do hero (60px) aparecia atrás do menu. */
  background: var(--bg-1);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8);
  max-height: 100svh;
  overflow-y: auto;
}
.nav-drawer[hidden] { display: none; }
.nav-drawer ul { list-style: none; display: grid; gap: 2px; }
.nav-drawer ul a {
  display: block;
  padding: 13px 14px;
  border-radius: 12px;
  color: var(--ink-0);
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
}
.nav-drawer ul a:hover { background: rgba(200, 230, 210, 0.05); border-color: var(--rule); }
.nav-drawer-cta { display: grid; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--rule); }
.nav-drawer-cta .btn { width: 100%; justify-content: center; }
/* Acima de 560px o "Entrar" já está no header — não repetir dentro do menu. */
@media (min-width: 561px) { .nav-drawer-cta .btn-ghost { display: none; } }

@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
}
/* Telas estreitas: some o "Entrar" do header (regra acima) mas o CTA principal
   fica — era ele que desaparecia junto e deixava o topo sem nenhuma ação. */
@media (max-width: 560px) {
  .nav .cta-group { display: flex; }
  .nav .cta-group .btn-primary { padding: 10px 16px; font-size: 14px; }
  .nav .cta-group .btn-primary .arrow { display: none; }
}
@media (max-width: 380px) {
  .nav .cta-group { display: none; }
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: transform .15s ease, background .2s, border-color .2s, color .2s, box-shadow .2s;
  border: 1px solid transparent;
  white-space: nowrap;
  font-weight: 500;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: var(--bg-0);
  box-shadow: 0 6px 28px -8px rgba(79,214,147,0.6), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover { background: var(--accent-2); box-shadow: 0 10px 36px -8px rgba(79,214,147,0.8), inset 0 1px 0 rgba(255,255,255,0.3); }
.btn-ghost {
  border-color: var(--rule-strong);
  color: var(--ink-0);
  background: rgba(255,255,255,0.025);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: rgba(200,230,210,0.45); background: rgba(255,255,255,0.06); color: var(--accent-2); }
.btn .arrow { font-size: 15px; line-height: 1; transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn .play-ico {
  display: inline-block; width: 0; height: 0;
  border-left: 8px solid currentColor;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  margin-left: -2px;
}

/* ========== Hero ========== */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 160px 0 100px;
  overflow: hidden;
  position: relative;
}
.hero-octo-disabled {
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: 980px;
  height: 980px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  animation: octoFloat 14s ease-in-out infinite;
}
.hero-octo img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 0 80px rgba(79,214,147,0.25));
}
@keyframes octoFloat {
  0%, 100% { transform: translateY(-50%) rotate(-2deg); }
  50% { transform: translateY(calc(-50% - 16px)) rotate(2deg); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 60px; } }
@media (max-width: 560px) {
  .hero {
    min-height: auto;
    padding: 132px 0 72px;
  }
  .hero-grid { gap: 38px; }
  .hero-copy {
    width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
  }
  .hero h1 {
    font-size: 43px;
    line-height: 1.06;
    letter-spacing: 0;
    max-width: 8.5ch;
    overflow-wrap: normal;
  }
  .hero .lede {
    width: 100%;
    max-width: 34ch;
    font-size: 15px;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }
  .hero-stage {
    width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
    justify-content: flex-start;
  }
  .hero .trust {
    gap: 12px;
    letter-spacing: 0.06em;
  }
  .hero .trust .sep { display: none; }
}

.hero-copy { min-width: 0; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(46px, 6.4vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 22px 0 26px;
  text-wrap: balance;
  max-width: 11ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.hero h1 .hl { color: var(--accent); font-style: normal; }
.hero h1 .verb-rot {
  display: inline-block;
  min-width: 4ch;
  transition: opacity .35s ease, transform .35s ease;
  position: relative;
}
.hero h1 .verb-rot.out { opacity: 1; transform: none; }
.hero h1 .verb-rot.in { animation: verbIn .5s ease both; }
@keyframes verbIn { from { opacity: 0.72; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.hero .lede {
  font-size: clamp(15.5px, 1.18vw, 18px);
  line-height: 1.62;
  color: var(--ink-1);
  max-width: 56ch;
  margin-bottom: 36px;
  text-wrap: pretty;
}
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; }
.hero .trust {
  display: flex; align-items: center; gap: 18px;
  color: var(--ink-2); font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  flex-wrap: wrap;
}
.hero .trust strong { color: var(--ink-0); font-weight: 500; }
.hero .trust .sep { width: 1px; height: 12px; background: var(--rule-strong); }

/* ==== Hero stage (right) ==== */
.hero-stage {
  position: relative;
  width: 100%;
  height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  transform: translate3d(0, calc(var(--hero-progress, 0) * -18px), 0);
  transition: transform .08s linear;
}
@media (max-width: 980px) { .hero-stage { height: 560px; } }

.flow-halo,
.flow-node,
.phone-actions,
.command-field,
.hero-console {
  display: none;
}

.hero-orbit {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(560px, 102%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(calc(var(--hero-progress, 0) * 12deg));
  z-index: 1;
  pointer-events: none;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(79,214,147,0.16), transparent 50%),
    conic-gradient(from 160deg, transparent 0deg, rgba(79,214,147,0.16) 54deg, transparent 118deg, rgba(126,233,177,0.10) 210deg, transparent 300deg);
  opacity: 0.68;
  filter: blur(3px);
}
.hero-orbit::before,
.hero-orbit::after {
  content: "";
  position: absolute;
  inset: 14%;
  border: 1px solid rgba(126,233,177,0.18);
  border-radius: 50%;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.hero-orbit::before {
  border-style: dashed;
  animation: heroRing 28s linear infinite;
}

.hero-flow-field {
  position: absolute;
  inset: -5% -10% -8%;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
  filter: drop-shadow(0 0 30px rgba(79,214,147,0.24));
}
.flow-aura {
  fill: url(#flowCore);
  transform-origin: 50% 50%;
  animation: flowBreathe 9s ease-in-out infinite;
}
.flow-path {
  fill: none;
  stroke: url(#flowStroke);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-dasharray: 18 46;
  opacity: 0.9;
  animation: flowTravel 6.8s linear infinite;
}
.flow-path-b { animation-duration: 8.2s; animation-delay: -1.4s; opacity: 0.64; }
.flow-path-c { animation-duration: 9.4s; animation-delay: -2.5s; opacity: 0.52; }
.flow-path-d { animation-duration: 10.5s; animation-delay: -3.2s; opacity: 0.34; }
.flow-dots circle {
  fill: var(--accent);
  opacity: 0.82;
  filter: drop-shadow(0 0 12px rgba(79,214,147,0.9));
  animation: flowDot 3.2s ease-in-out infinite;
}
.flow-dots circle:nth-child(2) { animation-delay: .4s; }
.flow-dots circle:nth-child(3) { animation-delay: .8s; }
.flow-dots circle:nth-child(4) { animation-delay: 1.2s; }
.flow-dots circle:nth-child(5) { animation-delay: 1.6s; }
@keyframes flowTravel { to { stroke-dashoffset: -128; } }
@keyframes flowBreathe {
  0%, 100% { transform: scale(0.98) rotate(-1deg); opacity: 0.8; }
  50% { transform: scale(1.04) rotate(1deg); opacity: 1; }
}
@keyframes flowDot {
  0%, 100% { transform: scale(0.75); opacity: 0.35; }
  45%, 60% { transform: scale(1.25); opacity: 1; }
}
.hero-orbit::after {
  inset: 29%;
  opacity: 0.58;
  animation: heroRing 20s linear infinite reverse;
}

.conversation-action {
  position: relative;
  z-index: 5;
  width: min(620px, 100%);
  min-height: 570px;
  display: grid;
  grid-template-rows: auto 88px auto 112px auto;
  justify-items: center;
  align-content: center;
  isolation: isolate;
}
.conversation-action::before {
  content: "";
  position: absolute;
  inset: 6% 4% 2%;
  z-index: -1;
  border-radius: 48px;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(79,214,147,0.18), transparent 45%),
    linear-gradient(180deg, rgba(7,32,21,0.18), rgba(2,14,8,0.03));
  border: 1px solid rgba(126,233,177,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.035), 0 56px 120px -80px rgba(79,214,147,0.46);
  backdrop-filter: blur(2px);
}
.incoming-bubble {
  width: min(430px, 86%);
  border: 1px solid rgba(126,233,177,0.28);
  border-radius: 24px 24px 24px 7px;
  padding: 20px 22px;
  background:
    linear-gradient(180deg, rgba(7,32,21,0.92), rgba(3,18,11,0.86));
  box-shadow:
    0 28px 72px -42px rgba(0,0,0,0.95),
    0 0 54px -34px rgba(79,214,147,0.95),
    inset 0 1px 0 rgba(255,255,255,0.06);
  animation: heroBubbleFloat 6s ease-in-out infinite;
}
.incoming-bubble span,
.intent-core span,
.outcome-card em {
  display: block;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-style: normal;
}
.incoming-bubble strong {
  display: block;
  margin-top: 8px;
  color: var(--ink-0);
  font-size: clamp(18px, 2.1vw, 25px);
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: 0;
}
.flow-spine {
  position: relative;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(79,214,147,0.78), transparent);
  box-shadow: 0 0 16px rgba(79,214,147,0.52);
}
.flow-spine::before,
.flow-spine::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 18%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
  box-shadow: 0 0 18px rgba(79,214,147,0.95);
  animation: spinePulse 2.7s ease-in-out infinite;
}
.flow-spine::after {
  top: 68%;
  animation-delay: 1.2s;
}
.flow-spine span {
  position: absolute;
  left: 50%;
  width: 150px;
  height: 1px;
  background: linear-gradient(90deg, rgba(79,214,147,0.72), transparent);
  transform-origin: left;
  opacity: 0.78;
}
.flow-spine span:first-child {
  bottom: -126px;
  transform: rotate(28deg);
}
.flow-spine span:last-child {
  bottom: -126px;
  transform: rotate(152deg);
}
.intent-core {
  position: relative;
  width: 254px;
  min-height: 112px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  border-radius: 999px;
  border: 1px solid rgba(126,233,177,0.34);
  background:
    radial-gradient(circle at 50% 50%, rgba(79,214,147,0.20), transparent 62%),
    linear-gradient(180deg, rgba(2,14,8,0.92), rgba(5,26,16,0.82));
  box-shadow:
    0 0 0 9px rgba(79,214,147,0.035),
    0 26px 70px -34px rgba(0,0,0,0.98),
    0 0 72px -28px rgba(79,214,147,0.95);
}
.intent-core strong {
  color: var(--ink-0);
  font-size: 15px;
  font-weight: 600;
}
.core-ring,
.core-ring::before,
.core-ring::after {
  position: absolute;
  inset: -12px;
  border: 1px solid rgba(126,233,177,0.20);
  border-radius: 999px;
  pointer-events: none;
}
.core-ring {
  animation: coreRing 3.8s ease-in-out infinite;
}
.core-ring::before,
.core-ring::after {
  content: "";
  inset: -12px;
}
.core-ring::before { animation: coreRing 3.8s ease-in-out .8s infinite; }
.core-ring::after { animation: coreRing 3.8s ease-in-out 1.6s infinite; }
.outcome-grid {
  width: min(590px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.outcome-card {
  position: relative;
  min-height: 156px;
  border: 1px solid rgba(126,233,177,0.22);
  border-radius: 20px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(7,32,21,0.88), rgba(2,14,8,0.74));
  box-shadow:
    0 24px 60px -36px rgba(0,0,0,0.96),
    0 0 48px -34px rgba(79,214,147,0.85),
    inset 0 1px 0 rgba(255,255,255,0.045);
  overflow: hidden;
  opacity: 0;
  transform: translateY(22px) scale(0.96);
  animation: outcomeIn .72s ease forwards;
  animation-delay: .48s;
}
.outcome-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(126,233,177,0.13) 42%, transparent 68%);
  transform: translateX(-120%);
  animation: cardSheen 4.8s ease-in-out infinite;
  animation-delay: 1.1s;
}
.outcome-card.crm { animation-delay: .62s; }
.outcome-card.reply { animation-delay: .76s; }
.outcome-card.crm::before { animation-delay: 1.25s; }
.outcome-card.reply::before { animation-delay: 1.4s; }
.outcome-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: 13px;
  color: var(--bg-0);
  background: var(--accent);
  box-shadow: 0 0 28px -8px rgba(79,214,147,0.95);
}
.outcome-icon svg { width: 20px; height: 20px; }
.outcome-card strong {
  display: block;
  margin-top: 6px;
  color: var(--ink-0);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 600;
}
.outcome-card p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.4;
}
@keyframes heroBubbleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes spinePulse {
  0%, 100% { opacity: 0.22; transform: translateX(-50%) scale(0.62); }
  45%, 60% { opacity: 1; transform: translateX(-50%) scale(1.35); }
}
@keyframes coreRing {
  0% { opacity: 0; transform: scale(0.88); }
  36% { opacity: 0.78; }
  100% { opacity: 0; transform: scale(1.22); }
}
@keyframes outcomeIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes cardSheen {
  0%, 42% { transform: translateX(-120%); }
  58%, 100% { transform: translateX(120%); }
}

.command-field {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(620px, 112%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
  border: 1px solid rgba(126,233,177,0.13);
  border-radius: 34px;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(79,214,147,0.16), transparent 48%),
    linear-gradient(180deg, rgba(7,32,21,0.24), rgba(2,14,8,0.10));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 48px 110px -70px rgba(79,214,147,0.42);
  overflow: hidden;
}
.field-grid {
  position: absolute;
  inset: 24px;
  border-radius: 26px;
  opacity: 0.72;
  background-image:
    linear-gradient(rgba(126,233,177,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126,233,177,0.055) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 74%);
}
.field-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(126,233,177,0.16);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.ring-one {
  width: 78%;
  height: 78%;
  border-style: dashed;
  animation: heroRing 32s linear infinite;
}
.ring-two {
  width: 52%;
  height: 52%;
  opacity: 0.55;
  animation: heroRing 24s linear infinite reverse;
}
@keyframes heroRing { to { transform: rotate(360deg); } }
.field-lane {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79,214,147,0.42), transparent);
  transform-origin: center;
  overflow: hidden;
}
.lane-one { transform: rotate(24deg); }
.lane-two { transform: rotate(-24deg); }
.field-lane::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -10%;
  width: 42px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
  filter: blur(1px);
  box-shadow: 0 0 18px rgba(79,214,147,0.8);
  animation: lanePulse 4.4s linear infinite;
}
.lane-two::after { animation-delay: 1.8s; }
@keyframes lanePulse { to { left: 110%; } }

.field-chip {
  position: absolute;
  z-index: 2;
  min-width: 118px;
  border: 1px solid rgba(126,233,177,0.18);
  border-radius: 13px;
  padding: 10px 11px;
  background:
    linear-gradient(180deg, rgba(7,32,21,0.74), rgba(2,14,8,0.58));
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 38px -22px rgba(0,0,0,0.9);
  opacity: 0.84;
  transition: opacity .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.field-chip.active {
  opacity: 1;
  border-color: rgba(126,233,177,0.52);
  transform: translateY(-3px);
  box-shadow: 0 18px 44px -22px rgba(0,0,0,0.9), 0 0 36px -18px rgba(79,214,147,0.9);
}
.field-chip span {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 9px;
  background: rgba(79,214,147,0.13);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  margin-bottom: 8px;
}
.field-chip strong {
  display: block;
  color: var(--ink-0);
  font-size: 12px;
  font-weight: 600;
}
.field-chip em {
  display: block;
  margin-top: 4px;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-style: normal;
  line-height: 1.35;
}
.chip-whatsapp { left: 2%; top: 18%; }
.chip-context { right: 2%; top: 20%; }
.chip-action { right: 3%; bottom: 19%; }
.chip-human { left: 3%; bottom: 19%; }

.phone-mock {
  position: relative;
  width: 306px;
  max-width: min(90%, calc(100vw - 64px));
  aspect-ratio: 9/19;
  border-radius: 42px;
  background: linear-gradient(180deg, #0d2a1c, #04140c);
  border: 1px solid rgba(200,230,210,0.18);
  box-shadow:
    0 50px 80px -30px rgba(0,0,0,0.85),
    0 0 0 1px rgba(0,0,0,0.4),
    0 0 120px -16px rgba(79,214,147,0.34),
    inset 0 1px 0 rgba(255,255,255,0.08);
  overflow: hidden;
  animation: float 7s ease-in-out infinite;
  display: flex;
  flex-direction: column;
  z-index: 5;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.phone-mock .phone-notch {
  position: absolute;
  top: 10px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 22px;
  background: #000; border-radius: 14px;
  z-index: 5;
}
.phone-mock .phone-head {
  padding: 38px 16px 12px;
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent);
  border-bottom: 1px solid var(--rule);
}
.phone-mock .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  display: grid; place-items: center;
  color: var(--bg-0); font-weight: 600; font-size: 14px;
  position: relative; flex-shrink: 0;
}
.phone-mock .avatar::after {
  content: "";
  position: absolute; right: -1px; bottom: -1px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--whatsapp);
  border: 2px solid #0d2a1c;
}
.phone-mock .phone-head .meta { flex: 1; min-width: 0; }
.phone-mock .phone-head .meta h5 { font-size: 13px; font-weight: 500; }
.phone-mock .phone-head .meta .status { font-family: var(--font-mono); font-size: 9px; color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 2px; }
.phone-mock .head-icons { display: flex; gap: 12px; color: var(--ink-2); }

.phone-mock .thread {
  padding: 14px 14px 8px;
  display: flex; flex-direction: column;
  gap: 6px;
  flex: 1;
  overflow: hidden;
}
.bubble {
  max-width: 80%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(10px);
  animation: bubble-in .45s ease forwards;
}
.bubble.seed:nth-child(1) { animation-delay: .15s; }
.bubble.seed:nth-child(2) { animation-delay: .32s; }
.bubble.seed:nth-child(3) { animation-delay: .49s; }
.bubble.seed:nth-child(4) { animation-delay: .66s; }
.bubble.them {
  background: rgba(255,255,255,0.06);
  color: var(--ink-0);
  border-top-left-radius: 4px;
  align-self: flex-start;
}
.bubble.us {
  background: var(--accent);
  color: var(--bg-0);
  border-top-right-radius: 4px;
  align-self: flex-end;
  font-weight: 500;
}
.bubble.us .ai-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(2,14,8,0.28);
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: middle;
}
.bubble.typing {
  background: rgba(255,255,255,0.06);
  align-self: flex-start;
  padding: 11px 13px;
  display: flex; gap: 4px;
  border-top-left-radius: 4px;
}
/* Quem digita no roteiro do hero é sempre a IA — o indicador tem que sair do
   lado dela, com a cor dela. Em flex-start parecia o cliente digitando. */
.bubble.typing.us-typing {
  align-self: flex-end;
  background: rgba(79, 214, 147, 0.18);
  border: 1px solid rgba(79, 214, 147, 0.32);
  border-top-left-radius: 14px;
  border-top-right-radius: 4px;
}
.bubble.typing.us-typing span { background: var(--accent); }

/* Fecho da conversa: a IA agenda e o recibo aparece. O roteiro já marcava esse
   momento, mas apontava pra um elemento que não existe no HTML. */
.thread-receipt {
  align-self: flex-end;
  display: flex; align-items: center; gap: 8px;
  max-width: 80%;
  margin-top: 1px;
  padding: 7px 11px;
  border-radius: 12px;
  border: 1px solid rgba(79, 214, 147, 0.28);
  background: rgba(79, 214, 147, 0.10);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  animation: bubble-in .45s ease .12s forwards;
}
.thread-receipt b { color: var(--accent-3); font-weight: 500; }
.thread-receipt i { font-style: normal; color: var(--ink-2); }
.thread-receipt .tick {
  width: 13px; height: 13px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
}
.thread-receipt .tick::after {
  content: "";
  position: absolute; left: 4px; top: 2.5px;
  width: 3.5px; height: 6.5px;
  border: solid var(--bg-0);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

/* Separador entre um atendimento e o próximo — o card nunca fica vazio. */
.thread-divider {
  align-self: stretch;
  display: flex; align-items: center; gap: 10px;
  margin: 3px 0;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  opacity: 0;
  animation: bubble-in .5s ease forwards;
}
.thread-divider span { flex: 1; height: 1px; background: var(--rule); }
.thread-divider i { font-style: normal; white-space: nowrap; }
.bubble.typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-2);
  animation: typing 1.2s infinite;
}
.bubble.typing span:nth-child(2) { animation-delay: .15s; }
.bubble.typing span:nth-child(3) { animation-delay: .30s; }
@keyframes typing { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes bubble-in { to { opacity: 1; transform: none; } }

.phone-input {
  padding: 10px 14px 18px;
  border-top: 1px solid var(--rule);
  font-size: 11px;
  color: var(--ink-2);
  background: rgba(255,255,255,0.02);
}

/* ========== Octo Engine ========== */
.octo-engine {
  position: absolute;
  right: -24px;
  top: 0;
  bottom: 0;
  left: 168px;
  z-index: 4;
  overflow: visible;
}

.octo-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* ===== Octopus orchestrator — brand art at center + light links to tools ===== */
.octo-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 3;
}
.octo-glow-bg {
  animation: octoGlowPulse 4.5s ease-in-out infinite;
}
@keyframes octoGlowPulse {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1;   }
}

/* Idle link: dim thread. When its tool is active, brightens + a pulse fires along it. */
.tentacle-path .link {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
  stroke-linecap: round;
  opacity: 0.15;
  transition: opacity 0.3s ease;
}
.tentacle-path .signal {
  fill: none;
  stroke: var(--accent-2);
  stroke-width: 2.6;
  stroke-linecap: round;
  opacity: 0;
  stroke-dasharray: 380;
  stroke-dashoffset: 380;
}
.tentacle-path.lit .link { opacity: 0.55; }
.tentacle-path.lit .signal { animation: signalFire 1.8s ease forwards; }
@keyframes signalFire {
  0%   { stroke-dashoffset: 380; opacity: 0.95; }
  55%  { stroke-dashoffset: 0;   opacity: 0.95; }
  84%  { stroke-dashoffset: 0;   opacity: 0.95; }
  100% { stroke-dashoffset: 0;   opacity: 0;    }
}

/* Brand octopus as the central brain */
.octo-art {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 212px;
  transform: translate(-50%, -50%);
  z-index: 6;
  pointer-events: none;
  filter:
    drop-shadow(0 0 24px rgba(79,214,147,0.42))
    drop-shadow(0 16px 42px rgba(0,0,0,0.6));
  animation: octoArtFloat 7s ease-in-out infinite;
}
@keyframes octoArtFloat {
  0%, 100% { transform: translate(-50%, -50%) translateY(0);    }
  50%      { transform: translate(-50%, -50%) translateY(-12px); }
}
@media (max-width: 1080px) { .octo-art { width: 186px; } }
@media (max-width: 560px)  { .octo-art { width: 152px; } }

/* Tool nodes */
.tool-node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px 7px 8px;
  border-radius: 999px;
  background: rgba(4,20,12,0.90);
  border: 1px solid rgba(126,233,177,0.22);
  box-shadow: 0 8px 28px -14px rgba(0,0,0,0.8);
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--ink-2);
  white-space: nowrap;
  backdrop-filter: blur(8px);
  transition: border-color 0.25s, box-shadow 0.25s, color 0.25s;
  z-index: 10;
}
.tool-node b { font-weight: 500; }
.tool-node.lit {
  border-color: rgba(79,214,147,0.7);
  color: var(--ink-0);
  box-shadow:
    0 0 22px -6px rgba(79,214,147,0.55),
    0 8px 28px -14px rgba(0,0,0,0.8);
  animation: nodeFlash 1.8s ease forwards;
}
@keyframes nodeFlash {
  0%   { box-shadow: 0 0 0 0 rgba(79,214,147,0); }
  30%  { box-shadow: 0 0 32px -4px rgba(79,214,147,0.65), 0 8px 28px -14px rgba(0,0,0,0.8); }
  85%  { box-shadow: 0 0 32px -4px rgba(79,214,147,0.65), 0 8px 28px -14px rgba(0,0,0,0.8); }
  100% { box-shadow: 0 0 0 0 rgba(79,214,147,0); }
}
.tn-ico {
  width: 24px; height: 24px;
  border-radius: 8px;
  background: rgba(79,214,147,0.10);
  display: grid; place-items: center;
  color: var(--accent);
  flex-shrink: 0;
  transition: background 0.25s, color 0.25s;
}
.tool-node.lit .tn-ico {
  background: var(--accent);
  color: var(--bg-0);
}

/* Tool node positions — match SVG tentacle endpoints */
/* T0 top, T1 top-right, T2 right, T3 bottom-right, T4 bottom-left, T5 left */
.tn-0 { top: 1%;  left: 50%; transform: translateX(-60%); }
.tn-1 { top: 5%;  right: 0;  }
.tn-2 { top: 44%; right: -6px; transform: translateY(-50%); }
.tn-3 { bottom: 5%; right: 4%; }
.tn-4 { bottom: 5%; left: 6%;  }
.tn-5 { top: 44%; left: -6px;  transform: translateY(-50%); }

/* Override phone-mock position to sit left within stage */
.hero-stage .phone-mock {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 186px;
  z-index: 8;
  animation: phoneMockFloat 7s ease-in-out infinite;
}
@keyframes phoneMockFloat {
  0%, 100% { transform: translateY(-50%) translateY(0); }
  50%       { transform: translateY(-50%) translateY(-10px); }
}
@media (max-width: 1080px) {
  .hero-stage .phone-mock { width: 166px; }
  .octo-engine { left: 150px; }
}
@media (max-width: 560px) {
  .hero-stage .phone-mock {
    width: 140px;
    left: -8px;
  }
  .octo-engine { left: 120px; right: -12px; }
  .tool-node b { display: none; }
  .tool-node { padding: 6px 8px; gap: 0; }
}

/* ========== /Octo Engine ========== */

.ai-execution {
  position: absolute;
  left: calc(50% + 96px);
  bottom: 10%;
  width: 268px;
  z-index: 7;
  border: 1px solid rgba(126,233,177,0.24);
  border-radius: 18px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(2,14,8,0.88), rgba(2,14,8,0.70));
  backdrop-filter: blur(18px);
  box-shadow: 0 26px 58px -32px rgba(0,0,0,0.95), 0 0 38px -26px rgba(79,214,147,0.9);
}
.exec-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 3px 10px;
  border-bottom: 1px solid rgba(200,230,210,0.10);
}
.exec-head span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}
.exec-head strong {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-1);
  font-weight: 500;
}
.exec-step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 10px 3px 0;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color .3s ease, transform .3s ease;
}
.exec-step em {
  font-style: normal;
  color: inherit;
}
.exec-step span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.exec-step.active {
  color: var(--accent);
  transform: translateX(2px);
}
.exec-step.done {
  color: var(--ink-1);
}
.exec-step.active::after {
  content: "";
  grid-column: 1 / -1;
  height: 1px;
  margin-top: 8px;
  background: linear-gradient(90deg, rgba(79,214,147,0.72), transparent);
  animation: execScan 1.8s ease infinite;
}
@keyframes execScan {
  0%, 100% { opacity: 0.28; transform: scaleX(0.72); transform-origin: left; }
  50% { opacity: 1; transform: scaleX(1); transform-origin: left; }
}

.hero-console {
  position: absolute;
  left: 50%;
  bottom: 2%;
  width: min(320px, 82%);
  transform: translateX(-50%);
  z-index: 5;
  border: 1px solid rgba(126,233,177,0.22);
  border-radius: 16px;
  padding: 10px;
  background: rgba(2,14,8,0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 48px -24px rgba(0,0,0,0.9);
}
.console-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 4px 9px;
  border-bottom: 1px solid rgba(200,230,210,0.10);
  color: var(--ink-1);
}
.console-head span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}
.console-head strong {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}
.console-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  padding: 8px 4px 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.console-row em {
  color: var(--accent);
  font-style: normal;
}
.console-row span {
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phone-actions {
  position: absolute;
  left: auto;
  right: calc(50% + 176px);
  top: 22%;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
  z-index: 6;
}
@media (max-width: 1180px) { .phone-actions { display: none; } }
.action-pill {
  background: rgba(2,14,8,0.92);
  border: 1px solid var(--rule-strong);
  backdrop-filter: blur(14px);
  padding: 8px 13px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex; align-items: center; gap: 6px;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity .5s ease, transform .5s ease;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.5);
}
.action-pill.show { opacity: 1; transform: translateX(0); animation: pillFloat 4s ease-in-out infinite; }
.action-pill:nth-child(2) { margin-left: 18px; animation-delay: 0.5s; }
.action-pill:nth-child(3) { margin-left: 4px; animation-delay: 1s; }
.action-pill .tick { color: var(--accent); }
@keyframes pillFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Orbital decorations around the phone */
.orbital {
  position: absolute;
  background: rgba(7,32,21,0.85);
  border: 1px solid var(--rule-strong);
  backdrop-filter: blur(12px);
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-1);
  display: flex; align-items: center; gap: 8px;
  z-index: 4;
  box-shadow: 0 12px 32px -10px rgba(0,0,0,0.6);
  animation: orbFloat 6s ease-in-out infinite;
}
.orbital .ico { font-size: 14px; }
.orbital.orb-1 { top: 14%; right: -10px; animation-delay: 0s; }
.orbital.orb-2 { bottom: 22%; right: -28px; animation-delay: 1.4s; }
.orbital.orb-3 { bottom: 8%; left: -10px; animation-delay: 2.8s; }
@keyframes orbFloat {
  0%,100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-10px) rotate(-1deg); }
}
@media (max-width: 720px) { .orbital { display: none; } }

/* ========== Ticker ========== */
.ticker {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 22px 0;
  overflow: hidden;
  background: rgba(2,14,8,0.85);
  z-index: 1;
}
.ticker-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 0 32px;
  border-right: 1px solid var(--rule);
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-row {
  display: flex;
  align-items: center;
  gap: 0;
}
.ticker-track {
  display: flex;
  gap: 56px;
  padding-left: 32px;
  animation: ticker 38s linear infinite;
  white-space: nowrap;
}
.ticker-track span {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink-1);
  opacity: 0.6;
  letter-spacing: -0.01em;
}
.ticker-track span em { color: var(--accent); font-style: normal; opacity: 0.7; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ========== Section layout ========== */
.section { padding: 130px 0; }
@media (max-width: 720px) { .section { padding: 90px 0; } }
.section-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  margin-bottom: 64px;
  align-items: end;
}
@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; gap: 28px; }
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.section-head h2 em { font-style: italic; color: var(--accent); font-weight: 400; }
.section-head .hed-aside {
  color: var(--ink-1);
  font-size: 16px;
  line-height: 1.62;
  max-width: 46ch;
  min-width: 0;
}
.section-head .eyebrow { margin-bottom: 20px; display: inline-flex; }

/* ========== Pillars ========== */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 32px;
  background: linear-gradient(180deg, rgba(7,32,21,0.7), rgba(4,20,12,0.65));
  backdrop-filter: blur(16px);
  min-height: 380px;
  display: flex; flex-direction: column;
  transition: border-color .35s, transform .35s, background .35s, box-shadow .35s;
  position: relative;
  overflow: hidden;
}
.pillar::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(79,214,147,0.08), transparent 50%);
  pointer-events: none;
  opacity: 0; transition: opacity .35s;
}
.pillar:hover {
  border-color: var(--rule-strong);
  transform: translateY(-4px);
  background: linear-gradient(180deg, rgba(10,42,28,0.85), rgba(7,32,21,0.75));
  box-shadow: var(--shadow-card);
}
.pillar:hover::after { opacity: 1; }
.pillar .pillar-art {
  height: 180px;
  margin: -32px -32px 24px;
  background: linear-gradient(180deg, rgba(79,214,147,0.10), transparent 80%);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.pillar .pillar-tent {
  position: absolute;
  right: 18px;
  top: 8px;
  width: 40px;
  height: 60px;
  color: var(--accent);
  pointer-events: none;
}
.pillar h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.pillar p { color: var(--ink-1); font-size: 14px; line-height: 1.55; }
.pillar .meta {
  margin-top: auto;
  padding-top: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Pillar art mocks */
.art-chat { padding: 20px; display: flex; flex-direction: column; gap: 6px; height: 100%; }
.art-chat .mini-bubble {
  max-width: 80%;
  padding: 6px 10px; border-radius: 10px; font-size: 11px;
  background: rgba(255,255,255,0.06); color: var(--ink-1);
  overflow-wrap: anywhere;
}
.art-chat .mini-bubble.ai { background: var(--accent); color: var(--bg-0); align-self: flex-end; font-weight: 500; }
.art-chat .mini-bubble.thinking { align-self: flex-end; font-family: var(--font-mono); font-size: 9px; color: var(--accent); background: transparent; border: 1px dashed var(--accent); }

.art-inbox { padding: 16px; display: flex; flex-direction: column; gap: 5px; height: 100%; }
.inbox-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: 6px;
  font-size: 11px; color: var(--ink-1);
  background: rgba(255,255,255,0.03);
  border: 1px solid transparent;
}
.inbox-row.active { border-color: var(--accent); background: rgba(79,214,147,0.10); }
.inbox-row .avatar-s { width: 18px; height: 18px; border-radius: 50%; background: var(--accent-deep); flex-shrink: 0; display: grid; place-items: center; color: var(--ink-0); font-size: 9px; font-weight: 600; }
.inbox-row .dot-new { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-left: auto; }

.art-pipe { padding: 18px; display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; height: 100%; }
.pipe-col {
  border: 1px dashed var(--rule);
  border-radius: 8px;
  padding: 6px 4px;
  display: flex; flex-direction: column; gap: 4px;
}
.pipe-col .pipe-label { font-family: var(--font-mono); font-size: 7px; color: var(--ink-2); letter-spacing: 0.1em; text-transform: uppercase; text-align: center; margin-bottom: 4px; }
.pipe-card { background: rgba(255,255,255,0.06); border-radius: 4px; height: 14px; }
.pipe-card.glow { background: var(--accent); box-shadow: 0 0 10px var(--accent); }

/* ========== DEVICES STAGE / Demo ========== */
.section-demo { background: linear-gradient(180deg, transparent, rgba(2,14,8,0.4) 30%, rgba(2,14,8,0.4) 70%, transparent); }
.devices-stage {
  position: relative;
  height: 720px;
  perspective: 1500px;
}
@media (max-width: 1100px) { .devices-stage { height: 600px; } }
@media (max-width: 720px) { .devices-stage { height: 520px; } }

/* Notebook */
.device-laptop {
  position: absolute;
  left: 50%; top: 40%;
  transform: translate(calc(-50% + var(--px, 0px)), calc(-50% + var(--py, 0px)));
  width: min(880px, 92%);
  z-index: 1;
  filter: drop-shadow(0 50px 80px rgba(0,0,0,0.7));
}
.laptop-screen {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 14px 14px 4px 4px;
  padding: 16px;
  position: relative;
}
.laptop-bezel {
  height: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}
.laptop-cam {
  width: 6px; height: 6px; border-radius: 50%;
  background: #555;
  box-shadow: inset 0 0 2px #000;
}
.laptop-os {
  background: linear-gradient(180deg, #051a10, #03130a);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--rule);
  height: 440px;
  display: flex;
  flex-direction: column;
}
@media (max-width: 720px) { .laptop-os { height: 320px; } }
.laptop-base {
  height: 14px;
  background: linear-gradient(180deg, #2a2a2a, #1a1a1a);
  border-radius: 0 0 18px 18px;
  position: relative;
  margin: 0 -3%;
  box-shadow: inset 0 1px 0 #3a3a3a, 0 4px 8px rgba(0,0,0,0.6);
}
.laptop-base .laptop-hinge {
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 4px;
  background: #0a0a0a;
  border-radius: 0 0 4px 4px;
}

/* OS chrome — recreated from real byflows dashboard */
.os-topbar {
  display: flex; align-items: center; gap: 14px;
  padding: 8px 14px;
  background: #0c1f17;
  border-bottom: 1px solid var(--rule);
  font-size: 11px;
}
.os-brand { display: flex; align-items: center; gap: 7px; color: var(--ink-0); font-weight: 600; font-size: 12px; }
.os-brandmark {
  width: 18px; height: 18px; border-radius: 5px;
  background:
    radial-gradient(circle at 50% 32%, #6ce0a6 0 4px, transparent 5px),
    radial-gradient(circle at 32% 64%, #6ce0a6 0 1.5px, transparent 2px),
    radial-gradient(circle at 68% 64%, #6ce0a6 0 1.5px, transparent 2px),
    linear-gradient(135deg, #1a3a28, #0e2a1c);
  border: 1px solid rgba(108,224,166,0.45);
}
.os-eng {
  font-family: var(--font-mono); font-size: 9px;
  color: var(--ink-2); letter-spacing: 0.14em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; border: 1px solid var(--rule);
}
.os-topright { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.os-help { color: var(--ink-2); font-size: 11px; }
.os-bell {
  width: 16px; height: 16px; position: relative;
  background:
    radial-gradient(circle at 50% 38%, transparent 5.5px, var(--ink-2) 5.5px 6.5px, transparent 7px),
    radial-gradient(circle at 50% 38%, var(--ink-2) 0 4px, transparent 5px);
}
.os-bell::after {
  content: ""; position: absolute; top: -1px; right: 1px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  border: 2px solid #0c1f17;
}
.os-online {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-2);
  padding: 4px 9px; border-radius: 999px;
  background: rgba(79,214,147,0.1); border: 1px solid rgba(79,214,147,0.3);
}
.os-online-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px var(--accent); }

.os-body { flex: 1; display: grid; grid-template-columns: 178px 1fr; min-height: 0; }
@media (max-width: 720px) { .os-body { grid-template-columns: 1fr; } .os-side { display: none; } }
.os-side {
  border-right: 1px solid var(--rule);
  padding: 12px 10px;
  background: #081410;
  overflow: auto;
}
.os-plan {
  margin: 2px 4px 14px;
  padding: 9px 10px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(79,214,147,0.10), rgba(79,214,147,0.02));
  border: 1px solid rgba(79,214,147,0.25);
}
.os-plan-name { font-family: var(--font-display); color: var(--accent-2); font-size: 14px; letter-spacing: -0.01em; }
.os-plan-pin { font-family: var(--font-mono); font-size: 9px; color: var(--ink-2); margin-top: 2px; }

.side-section { margin-bottom: 14px; }
.side-title {
  font-family: var(--font-mono); font-size: 9px;
  color: var(--ink-3); letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0 10px 6px;
}
.side-item {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 10px; border-radius: 6px;
  font-size: 11px; color: var(--ink-1);
  margin-bottom: 1px;
  cursor: default;
}
.side-item .ic { width: 14px; height: 14px; display: inline-grid; place-items: center; color: var(--ink-3); }
.side-item .ic svg { width: 100%; height: 100%; }
.side-item.active {
  background: rgba(79,214,147,0.12);
  color: var(--accent-2);
  box-shadow: inset 2px 0 0 var(--accent);
}
.side-item.active .ic { color: var(--accent); }

.os-main { padding: 16px 18px; overflow: hidden; background: #050d09; min-width: 0; }
.os-h { margin-bottom: 16px; }
.os-h h6 {
  font-family: var(--font-display); font-size: 22px; font-weight: 400;
  letter-spacing: -0.02em; color: var(--ink-0);
}
.os-h .os-sub { font-size: 11px; color: var(--ink-2); margin-top: 2px; max-width: 540px; }

.kpi-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-bottom: 12px; }
.kpi {
  padding: 10px 11px; border-radius: 9px;
  background: #0e1f17;
  border: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
  min-width: 0;
}
.kpi::after {
  content: ""; position: absolute; right: -10px; bottom: -10px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(79,214,147,0.05);
}
.kpi-lbl {
  font-family: var(--font-mono); font-size: 8.5px;
  color: var(--ink-3); letter-spacing: 0.10em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.kpi-num {
  font-family: var(--font-display); font-size: 26px; line-height: 1;
  margin-top: 4px; color: var(--ink-0); letter-spacing: -0.025em;
  font-weight: 400;
}
.kpi-foot {
  margin-top: 5px;
  font-size: 9.5px; color: var(--accent-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.os-consumo {
  background: #0e1f17;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.os-consumo-h {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 8px;
}
.os-consumo-h > span:first-child {
  font-family: var(--font-mono); font-size: 9px;
  color: var(--ink-3); letter-spacing: 0.14em; text-transform: uppercase;
}
.os-consumo-val { font-family: var(--font-mono); font-size: 11px; color: var(--ink-1); }
.os-consumo-bar {
  height: 6px; border-radius: 999px;
  background: rgba(255,255,255,0.05); overflow: hidden;
}
.os-consumo-bar span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  width: 0; border-radius: 999px;
  transition: width 1.4s cubic-bezier(.2,.8,.2,1);
}
.os-consumo-bar span.in { width: var(--w); }

.os-agents-block {
  background: #0e1f17;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 14px;
}
.os-agents-h {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.os-agents-h > span:first-child {
  font-family: var(--font-display); font-size: 14px;
  color: var(--ink-0); letter-spacing: -0.01em;
}
.os-gerenciar { font-family: var(--font-mono); font-size: 10px; color: var(--accent-2); }

.os-agent-row {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 4px;
  border-top: 1px solid var(--rule);
}
.os-agent-row:first-of-type { border-top: 0; padding-top: 0; }
.os-agent-av {
  flex: 0 0 32px; width: 32px; height: 32px; border-radius: 8px;
  background:
    radial-gradient(circle at 50% 36%, #6ce0a6 0 6px, transparent 7px),
    radial-gradient(circle at 35% 62%, #6ce0a6 0 2px, transparent 3px),
    radial-gradient(circle at 65% 62%, #6ce0a6 0 2px, transparent 3px),
    linear-gradient(135deg, #1a3a28, #0c2418);
  border: 1px solid rgba(108,224,166,0.4);
}
.os-agent-av.agent-2 { filter: hue-rotate(-12deg); }
.os-agent-info { flex: 1; min-width: 0; }
.os-agent-name { font-size: 13px; color: var(--ink-0); font-weight: 500; }
.os-agent-meta { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); margin-top: 1px; }
.os-badge-on {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.14em; color: var(--accent-2);
  padding: 3px 7px; border-radius: 999px;
  background: rgba(79,214,147,0.12);
  border: 1px solid rgba(79,214,147,0.3);
}
.os-pause { font-family: var(--font-mono); font-size: 10px; color: var(--ink-2); }

@keyframes bMove { 0%,100% { transform: translateY(0); border-color: var(--rule); } 50% { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 0 10px rgba(79,214,147,0.3); } }
.b-name { font-size: 9px; font-weight: 500; color: var(--ink-0); }
.b-meta { font-family: var(--font-mono); font-size: 7px; color: var(--ink-2); margin-top: 2px; }

/* Phone in foreground */
.device-phone {
  position: absolute;
  right: 6%;
  bottom: 0;
  width: 230px;
  z-index: 3;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
  filter: drop-shadow(0 40px 50px rgba(0,0,0,0.7));
}
@media (max-width: 1100px) { .device-phone { right: 2%; width: 200px; } }
@media (max-width: 720px) { .device-phone { right: 0; width: 160px; } }
.dp-frame {
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
  border-radius: 30px;
  padding: 8px;
  position: relative;
  box-shadow: inset 0 1px 0 #2a2a2a;
}
.dp-notch {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 18px;
  background: #000; border-radius: 12px;
  z-index: 5;
}
.dp-screen {
  background: #051a10;
  border-radius: 22px;
  overflow: hidden;
  height: 460px;
  display: flex; flex-direction: column;
}
@media (max-width: 720px) { .dp-screen { height: 340px; } }
.dp-status { display: flex; justify-content: space-between; padding: 10px 22px 4px; font-family: var(--font-mono); font-size: 10px; color: var(--ink-0); }
.dp-icons { display: flex; align-items: center; gap: 4px; color: var(--ink-0); }
.dp-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: rgba(7,32,21,0.85); border-bottom: 1px solid var(--rule); }
.dp-back { color: var(--accent); font-size: 16px; }
.dp-av { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg,var(--accent),var(--accent-deep)); display: grid; place-items: center; color: var(--bg-0); font-weight: 600; font-size: 11px; }
.dp-meta { flex: 1; min-width: 0; }
.dp-meta b { display: block; font-size: 11px; font-weight: 500; }
.dp-meta span { font-family: var(--font-mono); font-size: 8px; color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; }
.dp-act { color: var(--ink-2); font-size: 14px; }
.dp-thread { flex: 1; padding: 10px 10px 0; display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
.dp-day { align-self: center; font-family: var(--font-mono); font-size: 8px; color: var(--ink-2); padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,0.04); margin-bottom: 4px; }
.dp-bub { max-width: 86%; padding: 6px 9px; border-radius: 10px; font-size: 10px; line-height: 1.35; }
.dp-bub.them { background: rgba(255,255,255,0.06); align-self: flex-start; border-top-left-radius: 3px; }
.dp-bub.us { background: var(--accent); color: var(--bg-0); align-self: flex-end; border-top-right-radius: 3px; font-weight: 500; }
.dp-bub.us .dp-tag { display: inline-block; font-family: var(--font-mono); font-size: 7px; letter-spacing: 0.12em; text-transform: uppercase; background: rgba(2,14,8,0.3); padding: 1px 4px; border-radius: 3px; margin-right: 4px; vertical-align: middle; }
.dp-tool { align-self: flex-end; font-family: var(--font-mono); font-size: 8px; color: var(--accent); border: 1px dashed var(--accent); border-radius: 4px; padding: 3px 6px; }
.dp-input { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-top: 1px solid var(--rule); font-size: 10px; color: var(--ink-2); background: rgba(255,255,255,0.02); }
.dp-input span { flex: 1; padding: 4px 8px; background: rgba(255,255,255,0.04); border-radius: 999px; }
.dp-mic { color: var(--accent); }
.dp-home { height: 4px; width: 30%; margin: 6px auto; background: var(--ink-1); border-radius: 999px; opacity: 0.5; }

/* Tablet behind */
.device-tablet {
  position: absolute;
  left: 4%;
  bottom: 8%;
  width: 230px;
  z-index: 2;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) rotate(-6deg);
  filter: drop-shadow(0 40px 60px rgba(0,0,0,0.7));
}
@media (max-width: 1100px) { .device-tablet { width: 190px; bottom: 4%; } }
@media (max-width: 720px) { .device-tablet { display: none; } }
.dt-screen {
  background: linear-gradient(180deg, #062014, #03130a);
  border: 8px solid #0a0a0a;
  border-radius: 16px;
  padding: 14px;
  height: 280px;
  display: flex; flex-direction: column;
  gap: 10px;
}
.dt-h { display: flex; justify-content: space-between; align-items: center; }
.dt-tabs { display: flex; gap: 4px; }
.dt-tab { font-family: var(--font-mono); font-size: 8px; padding: 3px 8px; border-radius: 999px; color: var(--ink-2); border: 1px solid var(--rule); }
.dt-tab.on { background: var(--accent); color: var(--bg-0); border-color: var(--accent); }
.dt-step { font-family: var(--font-mono); font-size: 8px; color: var(--ink-2); }
.dt-body { display: flex; flex-direction: column; gap: 6px; }
.dt-row {
  display: grid; grid-template-columns: 14px 1fr 50px;
  gap: 8px; align-items: center;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--rule);
}
.dt-row-on { border-color: var(--accent); background: rgba(79,214,147,0.06); }
.dt-ic { color: var(--accent); font-size: 10px; }
.dt-name { font-size: 10px; color: var(--ink-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dt-bar { height: 3px; border-radius: 2px; background: rgba(255,255,255,0.06); overflow: hidden; }
.dt-bar i {
  display: block; height: 100%;
  width: var(--w); background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
}

/* Floating callouts */
.callout {
  position: absolute;
  background: rgba(7,32,21,0.92);
  border: 1px solid var(--rule-strong);
  backdrop-filter: blur(14px);
  border-radius: 12px;
  padding: 12px 16px;
  z-index: 5;
  box-shadow: 0 16px 40px -12px rgba(0,0,0,0.7);
  animation: orbFloat 6s ease-in-out infinite;
}
.callout-1 { top: 2%; left: 0%; }
.callout-2 { top: 6%; right: 0%; animation-delay: 2s; }
@media (max-width: 1300px) {
  .callout-1 { top: 0%; left: 0%; padding: 9px 13px; }
  .callout-2 { top: 2%; right: 0%; padding: 9px 13px; }
}
@media (max-width: 1000px) { .callout { display: none; } }
@media (max-width: 720px) { .callout { display: none; } }
.callout-num { font-family: var(--font-display); font-size: 26px; line-height: 1; color: var(--accent); }
.callout-lbl { font-family: var(--font-mono); font-size: 9px; color: var(--ink-2); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 4px; max-width: 14ch; }

/* ========== Impact ========== */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: rgba(5,20,12,0.55);
  backdrop-filter: blur(10px);
  border-radius: 4px;
}
@media (max-width: 860px) { .impact-grid { grid-template-columns: repeat(2, 1fr); } }
.impact-cell { padding: 44px 28px; border-right: 1px solid var(--rule); }
.impact-cell:last-child { border-right: 0; }
@media (max-width: 860px) {
  .impact-cell:nth-child(2n) { border-right: 0; }
  .impact-cell:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
}
.impact-cell .value {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink-0);
}
.impact-cell .value em { font-style: italic; color: var(--accent); }
.impact-cell .label { font-size: 13px; color: var(--ink-1); margin-top: 14px; max-width: 26ch; line-height: 1.5; }

/* ========== Steps ========== */
.section-steps { background: linear-gradient(180deg, transparent, rgba(2,14,8,0.4) 50%, transparent); }
.steps {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 980px) { .steps { grid-template-columns: 1fr; gap: 32px; } }
.step-list {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
}
@media (max-width: 980px) { .step-list { position: static; } }
.step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  opacity: 0.45;
  transition: opacity .3s;
  text-align: left;
  width: 100%;
}
.step:last-child { border-bottom: 0; }
.step.active { opacity: 1; }
.step .num { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--ink-2); padding-top: 4px; }
.step.active .num { color: var(--accent); }
.step h3 { font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; }
.step p {
  font-size: 13px; color: var(--ink-1); line-height: 1.55;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .4s, opacity .3s, margin-top .3s;
}
.step.active p { max-height: 200px; opacity: 1; margin-top: 8px; }

.step-viewer {
  background: linear-gradient(180deg, rgba(7,32,21,0.85), rgba(4,20,12,0.78));
  backdrop-filter: blur(16px);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 32px;
  min-height: 540px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.step-viewer::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(79,214,147,0.10), transparent 60%),
    radial-gradient(ellipse at 100% 100%, rgba(31,122,76,0.14), transparent 50%);
  pointer-events: none;
}
.step-panel { display: none; position: relative; z-index: 1; }
.step-panel.active { display: block; animation: stepIn .5s ease both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.step-panel h4 {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 400;
  letter-spacing: -0.01em; margin-bottom: 8px;
}
.step-panel .sub { color: var(--ink-1); font-size: 14px; margin-bottom: 24px; line-height: 1.55; }

.chip {
  padding: 6px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-1);
  background: rgba(255,255,255,0.02);
}
.chip.selected { border-color: var(--accent); color: var(--bg-0); background: var(--accent); font-weight: 500; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }

.conv {
  background: rgba(2,14,8,0.6);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.conv .c-bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
}
.conv .c-bubble.them { background: rgba(255,255,255,0.06); color: var(--ink-0); border-top-left-radius: 4px; align-self: flex-start; }
.conv .c-bubble.us { background: var(--accent); color: var(--bg-0); border-top-right-radius: 4px; align-self: flex-end; font-weight: 500; }
.conv .c-bubble.tool { align-self: flex-end; font-family: var(--font-mono); font-size: 11px; color: var(--accent); background: transparent; border: 1px dashed var(--accent); border-radius: 6px; padding: 6px 10px; }
.conv .c-bubble.tool .tool-name { color: var(--ink-0); font-weight: 600; }

.kb-list { display: flex; flex-direction: column; gap: 8px; }
.kb-row {
  display: grid; grid-template-columns: 32px 1fr 100px;
  align-items: center; gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  font-size: 13px;
  background: rgba(255,255,255,0.02);
}
.kb-row .kb-icon { width: 28px; height: 28px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.kb-row .kb-name { font-weight: 500; }
.kb-row .kb-meta-inline { color: var(--ink-2); font-size: 11px; font-family: var(--font-mono); margin-top: 2px; }
.kb-row .kb-bar { height: 4px; border-radius: 2px; background: rgba(255,255,255,0.08); overflow: hidden; }
.kb-row .kb-bar span { display: block; height: 100%; background: linear-gradient(90deg,var(--accent),var(--accent-2)); border-radius: 2px; }

.pipe-board { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
@media (max-width: 700px) { .pipe-board { grid-template-columns: repeat(2,1fr); } }
.pipe-col-real { border: 1px solid var(--rule); border-radius: 12px; padding: 14px 10px; background: rgba(2,14,8,0.6); min-height: 200px; display: flex; flex-direction: column; gap: 8px; }
.pipe-col-real .col-head { font-family: var(--font-mono); font-size: 10px; color: var(--ink-2); letter-spacing: 0.12em; text-transform: uppercase; display: flex; justify-content: space-between; padding: 0 4px 4px; border-bottom: 1px solid var(--rule); }
.pipe-col-real .count { color: var(--accent); }
.pipe-card-real { background: rgba(255,255,255,0.04); border: 1px solid var(--rule); border-radius: 8px; padding: 8px 10px; font-size: 12px; transition: transform .2s, border-color .2s; }
.pipe-card-real.win { border-color: var(--accent); background: rgba(79,214,147,0.08); }
.pipe-card-real .p-name { font-weight: 500; color: var(--ink-0); }
.pipe-card-real .p-last { font-size: 10px; color: var(--ink-2); font-family: var(--font-mono); margin-top: 4px; }
.pipe-card-real.moving { animation: pipe-move 2.6s ease infinite; }
@keyframes pipe-move {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 0 12px rgba(79,214,147,0.3); }
}

/* ========== Premium differential ========== */
.premium-diff {
  overflow: hidden;
  padding-top: 150px;
  background:
    radial-gradient(ellipse at 78% 38%, rgba(79,214,147,0.16), transparent 44%),
    radial-gradient(ellipse at 10% 72%, rgba(31,122,76,0.14), transparent 38%),
    linear-gradient(180deg, transparent, rgba(4,20,12,0.34) 50%, transparent);
}
.premium-diff::after {
  content: "";
  position: absolute;
  inset: 8% -8%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.58;
  background:
    conic-gradient(from 140deg at 50% 50%, transparent 0deg, rgba(79,214,147,0.20) 58deg, transparent 120deg, rgba(126,233,177,0.12) 210deg, transparent 310deg),
    radial-gradient(ellipse at 30% 65%, rgba(31,122,76,0.22), transparent 46%);
  filter: blur(42px) saturate(1.25);
  animation: diffLiquid 18s ease-in-out infinite alternate;
}
@keyframes diffLiquid {
  0% { transform: translate3d(-2%, 2%, 0) rotate(-4deg) scale(1.03); }
  100% { transform: translate3d(2%, -1%, 0) rotate(3deg) scale(1.08); }
}
.premium-shell {
  min-height: 520px;
  border: 1px solid var(--rule-strong);
  border-radius: 22px;
  padding: 44px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 42px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(79,214,147,0.10), transparent 38%),
    linear-gradient(180deg, rgba(7,32,21,0.72), rgba(4,20,12,0.58));
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}
.premium-shell::before {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(ellipse at 24% 68%, rgba(79,214,147,0.18), transparent 36%),
    radial-gradient(ellipse at 74% 28%, rgba(126,233,177,0.12), transparent 40%);
  filter: blur(28px);
  opacity: 0.8;
  pointer-events: none;
}
.premium-copy,
.premium-machine { position: relative; z-index: 1; }
.diff-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.diff-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}
.premium-copy p {
  color: var(--ink-1);
  font-size: 18px;
  line-height: 1.7;
  max-width: 46ch;
}
.operation-log {
  margin-top: 28px;
  border: 1px solid rgba(126,233,177,0.18);
  border-radius: 16px;
  background: rgba(2,14,8,0.34);
  overflow: hidden;
}
.log-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 3px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(200,230,210,0.08);
  position: relative;
}
.log-row:last-child { border-bottom: 0; }
.log-row::before {
  content: "";
  position: absolute;
  left: 36px;
  top: 21px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(79,214,147,0.8);
}
.log-row span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.log-row strong {
  color: var(--ink-0);
  font-size: 13px;
  font-weight: 500;
}
.log-row em {
  grid-column: 2;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-style: normal;
}
.log-row.active {
  background: linear-gradient(90deg, rgba(79,214,147,0.10), transparent);
}
.premium-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.premium-points span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent-2);
  border: 1px solid rgba(126,233,177,0.28);
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(2,14,8,0.36);
}
.premium-machine {
  min-height: 420px;
  border: 1px solid rgba(126,233,177,0.18);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(2,14,8,0.28), rgba(2,14,8,0.52)),
    radial-gradient(ellipse at 50% 50%, rgba(79,214,147,0.13), transparent 62%);
  overflow: hidden;
}
.premium-machine::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(126,233,177,0.08);
  border-radius: 14px;
  background-image:
    linear-gradient(rgba(126,233,177,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126,233,177,0.055) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 76%);
}
.machine-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 148px;
  height: 148px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  background:
    radial-gradient(circle at 34% 28%, rgba(255,255,255,0.20), transparent 24%),
    linear-gradient(180deg, rgba(79,214,147,0.95), rgba(31,122,76,0.88));
  color: var(--bg-0);
  box-shadow: 0 0 0 14px rgba(79,214,147,0.06), 0 0 70px rgba(79,214,147,0.32);
  z-index: 3;
}
.machine-core img { width: 48px; height: 48px; object-fit: contain; filter: brightness(0.12); opacity: 0.78; }
.machine-core span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}
.machine-node {
  position: absolute;
  width: 178px;
  padding: 15px 16px;
  border: 1px solid rgba(126,233,177,0.26);
  border-radius: 13px;
  background: rgba(2,14,8,0.64);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 38px -22px rgba(0,0,0,0.9);
  z-index: 2;
}
.machine-node strong {
  display: block;
  color: var(--ink-0);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 5px;
}
.machine-node span {
  display: block;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.45;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.node-a { left: 8%; top: 16%; }
.node-b { right: 8%; top: 16%; }
.node-c { right: 8%; bottom: 16%; }
.node-d { left: 8%; bottom: 16%; }
.machine-line {
  position: absolute;
  height: 1px;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(79,214,147,0.72), transparent);
  transform-origin: center;
  z-index: 1;
}
.machine-line::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulseLine 2.8s linear infinite;
}
.line-a { left: 25%; top: 35%; transform: rotate(25deg); }
.line-b { right: 25%; top: 35%; transform: rotate(-25deg); }
.line-c { right: 25%; bottom: 35%; transform: rotate(25deg); }
.line-d { left: 25%; bottom: 35%; transform: rotate(-25deg); }
@keyframes pulseLine { to { left: calc(100% - 5px); } }
@media (max-width: 980px) {
  .premium-shell {
    grid-template-columns: 1fr;
    padding: 30px;
  }
  .premium-machine { min-height: 390px; }
}
@media (max-width: 620px) {
  .premium-diff { padding-top: 96px; }
  .premium-shell {
    min-height: auto;
    padding: 22px;
    border-radius: 16px;
  }
  .premium-copy p { font-size: 16px; }
  .premium-machine { min-height: 520px; }
  .machine-core {
    width: 122px;
    height: 122px;
  }
  .machine-node {
    width: min(172px, 46%);
    padding: 12px;
  }
  .node-a { left: 5%; top: 8%; }
  .node-b { right: 5%; top: 8%; }
  .node-c { right: 5%; bottom: 8%; }
  .node-d { left: 5%; bottom: 8%; }
  .machine-line { width: 34%; }
}
.diff-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.diff-proof article {
  min-height: 190px;
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(7,32,21,0.58), rgba(4,20,12,0.48));
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}
.diff-proof article::after {
  content: "";
  position: absolute;
  inset: auto 18px 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(79,214,147,0.48), transparent);
  opacity: 0;
}
.diff-proof article.active {
  border-color: rgba(126,233,177,0.36);
  background:
    radial-gradient(ellipse at 80% 0%, rgba(79,214,147,0.16), transparent 44%),
    linear-gradient(180deg, rgba(7,32,21,0.72), rgba(4,20,12,0.56));
}
.diff-proof article.active::after { opacity: 1; }
.diff-proof span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.diff-proof strong {
  display: block;
  margin: 18px 0 10px;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.01em;
  font-weight: 400;
  color: var(--ink-0);
}
.diff-proof p {
  color: var(--ink-1);
  font-size: 14px;
  line-height: 1.55;
}
@media (max-width: 860px) {
  .diff-proof { grid-template-columns: 1fr; }
  .diff-proof article { min-height: auto; }
}

/* ========== Marketplace ========== */
.mkt-wrap { position: relative; overflow: hidden; padding: 8px 0; }
.mkt-wrap::before, .mkt-wrap::after {
  content: ""; position: absolute; top: 0; bottom: 0;
  width: 100px; pointer-events: none; z-index: 2;
}
.mkt-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg-0), transparent); }
.mkt-wrap::after { right: 0; background: linear-gradient(270deg, var(--bg-0), transparent); }
.mkt-track {
  display: flex;
  gap: 14px;
  animation: mkt 50s linear infinite;
  width: max-content;
}
.mkt-wrap:hover .mkt-track { animation-play-state: paused; }
@keyframes mkt { to { transform: translateX(-50%); } }
.mkt-card {
  width: 320px; flex-shrink: 0;
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(7,32,21,0.85), rgba(4,20,12,0.78));
  backdrop-filter: blur(14px);
  display: flex; flex-direction: column;
  gap: 10px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  cursor: pointer;
  min-height: 240px;
}
.mkt-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-card); }
.mkt-card .mkt-head { display: flex; align-items: center; gap: 10px; }
.mkt-card .mkt-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.mkt-card .mkt-meta { font-family: var(--font-mono); font-size: 10px; color: var(--ink-2); letter-spacing: 0.1em; text-transform: uppercase; }
.mkt-card h4 { font-family: var(--font-display); font-size: 22px; font-weight: 400; letter-spacing: -0.01em; }
.mkt-card p { font-size: 13px; color: var(--ink-1); line-height: 1.5; min-height: 40px; }
.mkt-card .mkt-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mkt-card .mkt-tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em;
  padding: 3px 8px; border-radius: 4px;
  background: rgba(255,255,255,0.04); color: var(--ink-2);
}
.mkt-card .mkt-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
}
.mkt-card .mkt-uses { color: var(--ink-2); }
.mkt-card .mkt-install { color: var(--accent); font-weight: 500; }

/* ========== Niches ========== */
.niche-system {
  border: 1px solid var(--rule);
  border-radius: 22px;
  padding: 32px;
  background:
    linear-gradient(180deg, rgba(7,32,21,0.68), rgba(4,20,12,0.54));
  backdrop-filter: blur(14px);
  overflow: hidden;
}
.niche-lead {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 42px;
  align-items: start;
  margin-bottom: 30px;
}
.niche-kicker,
.niche-mode {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.niche-lead h3 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.04;
  margin-top: 12px;
  text-wrap: balance;
}
.niche-lead p {
  color: var(--ink-1);
  font-size: 15px;
  line-height: 1.65;
}
.niche-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.niche-stats span {
  color: var(--ink-2);
  font-size: 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(255,255,255,0.03);
}
.niche-stats strong { color: var(--ink-0); font-weight: 500; }
.niche-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 12px;
}
.niche-tile {
  min-height: 236px;
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 20px;
  background:
    radial-gradient(ellipse at 86% 8%, rgba(79,214,147,0.10), transparent 48%),
    rgba(2,14,8,0.34);
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.niche-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(126,233,177,0.40);
  background:
    radial-gradient(ellipse at 86% 8%, rgba(79,214,147,0.16), transparent 50%),
    rgba(7,32,21,0.72);
}
.niche-tile.feature { grid-column: span 2; grid-row: span 2; min-height: 484px; }
.niche-tile.wide { grid-column: span 2; }
.niche-tile.tall { grid-row: span 2; min-height: 484px; }
.niche-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.niche-tile h4 {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-weight: 400;
}
.niche-tile p {
  color: var(--ink-1);
  font-size: 13px;
  line-height: 1.5;
}
.subniches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.subniches span {
  font-size: 11px;
  color: var(--ink-2);
  border: 1px solid rgba(200,230,210,0.12);
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(255,255,255,0.025);
}
@media (max-width: 1080px) {
  .niche-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .niche-system { padding: 22px; border-radius: 16px; }
  .niche-lead { grid-template-columns: 1fr; gap: 18px; }
  .niche-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .niche-tile.feature,
  .niche-tile.tall,
  .niche-tile.wide {
    grid-column: auto;
    grid-row: auto;
    min-height: 236px;
  }
}
@media (max-width: 560px) {
  .niche-grid { grid-template-columns: 1fr; }
  .niche-tile { min-height: auto; }
}
.niches-wrap { position: relative; overflow: hidden; }
.niches-wrap::before, .niches-wrap::after {
  content: ""; position: absolute; top: 0; bottom: 0;
  width: 100px; pointer-events: none; z-index: 2;
}
.niches-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg-0), transparent); }
.niches-wrap::after { right: 0; background: linear-gradient(270deg, var(--bg-0), transparent); }
.niches-track {
  display: flex;
  gap: 12px;
  animation: niches 60s linear infinite;
  width: max-content;
}
.niches-wrap:hover .niches-track { animation-play-state: paused; }
@keyframes niches { to { transform: translateX(-50%); } }
.niche-card {
  width: 240px; flex-shrink: 0;
  aspect-ratio: 1/1;
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(7,32,21,0.85), rgba(4,20,12,0.78));
  backdrop-filter: blur(12px);
  display: flex; flex-direction: column; justify-content: space-between;
  transition: border-color .25s, background .25s, transform .25s, box-shadow .25s;
}
.niche-card:hover { border-color: var(--accent); background: rgba(10,42,28,0.95); transform: translateY(-3px); box-shadow: var(--shadow-card); }
.niche-card .icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
}
.niche-card h4 { font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.1; letter-spacing: -0.01em; }
.niche-card .niche-ex { color: var(--ink-2); font-size: 12px; line-height: 1.5; margin-top: 4px; }

.niche-browser {
  margin-top: 34px;
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: 16px;
  align-items: stretch;
}
.niche-tabs {
  max-height: 460px;
  overflow: auto;
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 8px;
  background: linear-gradient(180deg, rgba(7,32,21,0.78), rgba(4,20,12,0.7));
  backdrop-filter: blur(14px);
}
.niche-tabs button {
  width: 100%;
  text-align: left;
  padding: 11px 12px;
  border-radius: 9px;
  color: var(--ink-1);
  font-size: 14px;
  transition: background .18s, color .18s;
}
.niche-tabs button:hover,
.niche-tabs button.active {
  background: rgba(79,214,147,0.12);
  color: var(--accent-2);
}
.niche-detail {
  min-height: 300px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(7,32,21,0.88), rgba(4,20,12,0.78));
  backdrop-filter: blur(14px);
}
.niche-detail-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 26px;
}
.niche-detail .icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.niche-detail h3 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1;
  margin: 5px 0 8px;
}
.niche-detail p { color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.subchips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.subchips span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-1);
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255,255,255,0.03);
}
@media (max-width: 820px) {
  .niche-browser { grid-template-columns: 1fr; }
  .niche-tabs {
    max-height: none;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px;
  }
  .niche-tabs button {
    width: auto;
    white-space: nowrap;
    flex: 0 0 auto;
  }
}
@media (max-width: 560px) {
  .niches-wrap::before, .niches-wrap::after,
  .mkt-wrap::before, .mkt-wrap::after { width: 34px; }
  .niche-card { width: 200px; padding: 18px; }
  .niche-detail { padding: 22px; }
  .niche-detail-head { flex-direction: column; }
}

.niche-compact {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 18px;
  min-height: 430px;
}
.niche-compact .niche-tabs {
  max-height: none;
  overflow: visible;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
}
.niche-compact .niche-tabs button {
  width: 100%;
  min-width: 0;
  display: block;
  padding: 14px 15px;
  border: 1px solid rgba(200,230,210,0.10);
  border-radius: 12px;
  background: rgba(2,14,8,0.30);
  color: var(--ink-1);
  white-space: normal;
}
.niche-compact .niche-tabs button span {
  display: block;
  font-size: 14px;
  color: var(--ink-0);
  font-weight: 500;
}
.niche-compact .niche-tabs button em {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-style: normal;
}
.niche-compact .niche-tabs button:hover,
.niche-compact .niche-tabs button.active {
  border-color: rgba(126,233,177,0.42);
  background: rgba(79,214,147,0.10);
}
.niche-compact .niche-tabs button.active em { color: var(--accent); }
.niche-compact .niche-tabs .more-niches {
  border-style: dashed;
  opacity: 0.78;
}
.niche-compact .niche-detail {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(280px, 1fr);
  gap: 28px;
  align-items: stretch;
  padding: 30px;
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(79,214,147,0.14), transparent 46%),
    linear-gradient(180deg, rgba(7,32,21,0.78), rgba(4,20,12,0.66));
}
.niche-preview-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 68px);
  line-height: 0.96;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 12px 0 14px;
}
.niche-preview-copy p {
  color: var(--ink-1);
  font-size: 15px;
  line-height: 1.55;
  max-width: 40ch;
}
.niche-preview-copy .subchips { margin-top: 24px; }
.niche-playbook {
  border: 1px solid rgba(126,233,177,0.20);
  border-radius: 16px;
  padding: 22px;
  background: rgba(2,14,8,0.34);
  display: flex;
  flex-direction: column;
}
.playbook-top {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(200,230,210,0.10);
}
.playbook-top span {
  display: block;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.playbook-top strong {
  display: block;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-0);
}
.playbook-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.playbook-cols > div {
  border: 1px solid rgba(200,230,210,0.09);
  border-radius: 12px;
  padding: 14px;
  background: rgba(255,255,255,0.025);
}
.playbook-cols span {
  display: block;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.playbook-cols em {
  display: block;
  color: var(--ink-1);
  font-size: 13px;
  line-height: 1.5;
  font-style: normal;
  margin-top: 5px;
}
.mini-chart {
  height: 110px;
  display: flex;
  align-items: end;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
}
.mini-chart div {
  flex: 1;
  height: var(--h);
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(180deg, var(--accent), rgba(31,122,76,0.45));
  box-shadow: 0 0 26px -10px rgba(79,214,147,0.8);
}

/* ========== Value proof ========== */
.value-proof {
  background:
    radial-gradient(ellipse at 18% 18%, rgba(79,214,147,0.10), transparent 42%),
    linear-gradient(180deg, transparent, rgba(2,14,8,0.42), transparent);
}
.value-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 0.72fr));
  gap: 12px;
}
.value-card {
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(7,32,21,0.76), rgba(4,20,12,0.64));
  backdrop-filter: blur(14px);
  min-height: 220px;
}
.value-card.main { min-height: 320px; }
.value-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 28px;
}
.value-head span,
.value-card.metric span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.value-head strong {
  color: var(--ink-0);
  font-weight: 500;
  font-size: 14px;
}
.funnel-bars {
  display: grid;
  gap: 16px;
}
.funnel-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.funnel-row span { color: var(--ink-1); font-size: 14px; }
.funnel-row strong { color: var(--ink-0); font-weight: 600; }
.funnel-row em {
  grid-column: 1 / -1;
  height: 12px;
  width: var(--w);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), rgba(126,233,177,0.32));
  box-shadow: 0 0 24px -10px rgba(79,214,147,0.9);
}
.value-card.metric {
  display: flex;
  flex-direction: column;
}
.value-card.metric strong {
  font-family: var(--font-display);
  font-size: clamp(52px, 6vw, 78px);
  line-height: 0.95;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--ink-0);
  margin: 34px 0 18px;
}
.value-card.metric p {
  margin-top: auto;
  color: var(--ink-1);
  font-size: 14px;
  line-height: 1.55;
}
@media (max-width: 980px) {
  .niche-compact,
  .niche-compact .niche-detail,
  .value-grid {
    grid-template-columns: 1fr;
  }
  .niche-compact .niche-tabs {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .niche-compact .niche-tabs button {
    flex: 0 0 210px;
  }
  .value-card.main { min-height: 280px; }
}
@media (max-width: 560px) {
  .operation-log { margin-top: 22px; }
  .premium-points { display: none; }
  .niche-compact { padding: 18px; }
  .niche-compact .niche-detail { padding: 20px; gap: 22px; }
  .playbook-cols { grid-template-columns: 1fr; }
  .value-card { padding: 20px; min-height: auto; }
  .value-head { display: block; }
  .value-head strong { display: block; margin-top: 8px; }
}

/* ========== Pricing ========== */
.price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 1020px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .price-grid { grid-template-columns: 1fr; } }
.price-card {
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 28px;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(7,32,21,0.78), rgba(4,20,12,0.7));
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.price-card:hover { border-color: var(--rule-strong); transform: translateY(-3px); box-shadow: var(--shadow-card); }
.price-card.featured {
  border-color: var(--accent);
  background:
    linear-gradient(180deg, rgba(79,214,147,0.10), transparent 60%),
    linear-gradient(180deg, rgba(7,32,21,0.92), rgba(4,20,12,0.85));
  box-shadow: 0 24px 60px -22px rgba(79,214,147,0.4);
}
.price-card .tag {
  position: absolute; top: 20px; right: 20px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 4px 10px; border-radius: 999px;
}
.price-card h3 { font-family: var(--font-display); font-size: 26px; font-weight: 400; letter-spacing: -0.01em; margin-bottom: 4px; }
.price-card .plan-sub { color: var(--ink-2); font-size: 13px; margin-bottom: 24px; line-height: 1.5; }
.price-card .amount { display: flex; align-items: baseline; gap: 4px; margin-bottom: 20px; }
.price-card .amount .currency { color: var(--ink-2); font-size: 14px; }
.price-card .amount .num { font-family: var(--font-display); font-size: 52px; font-weight: 400; letter-spacing: -0.02em; line-height: 1; }
.price-card .amount .per { color: var(--ink-2); font-size: 12px; margin-left: 4px; }
.price-card .limits { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 14px; background: rgba(255,255,255,0.03); border-radius: 10px; margin-bottom: 20px; font-size: 12px; }
.price-card .limits .lim { display: flex; justify-content: space-between; color: var(--ink-1); }
.price-card .limits .lim strong { color: var(--ink-0); font-weight: 500; }
.price-card .feats { list-style: none; margin: 0 0 22px; display: flex; flex-direction: column; gap: 8px; }
.price-card .feats li {
  font-size: 13px; color: var(--ink-1);
  position: relative; padding-left: 22px;
  line-height: 1.5;
}
.price-card .feats li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent-soft); border: 1px solid var(--accent);
}
.price-card .feats li::after {
  content: ""; position: absolute; left: 4px; top: 8px;
  width: 6px; height: 3px;
  border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}
.price-card .btn { margin-top: auto; justify-content: center; }

/* ========== FAQ ========== */
.faq { border-top: 1px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--rule); padding: 26px 0; cursor: pointer; }
.faq-item .q {
  display: flex; align-items: start; justify-content: space-between; gap: 24px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.faq-item .plus {
  flex-shrink: 0; width: 28px; height: 28px;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 16px; line-height: 1;
  color: var(--ink-1);
  transition: transform .3s, background .2s, color .2s, border-color .2s;
}
.faq-item.open .plus { transform: rotate(45deg); background: var(--accent); color: var(--bg-0); border-color: var(--accent); }
.faq-item .a {
  max-height: 0; overflow: hidden;
  color: var(--ink-1); font-size: 15px; line-height: 1.65;
  transition: max-height .4s, margin-top .3s, opacity .3s;
  opacity: 0;
  max-width: 76ch;
}
.faq-item.open .a { max-height: 400px; margin-top: 16px; opacity: 1; }

/* ========== Final CTA ========== */
.final-cta {
  padding: 140px 0 120px;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--rule);
  position: relative;
}
.final-cta::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(79,214,147,0.22), transparent 55%),
    radial-gradient(ellipse at 20% 20%, rgba(31,122,76,0.16), transparent 55%);
  pointer-events: none;
  z-index: -1;
}
.cta-octo-disabled {
  position: absolute;
  left: 50%; top: 30%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  color: rgba(79,214,147,0.04);
  z-index: 0;
  pointer-events: none;
  animation: octoFloat 12s ease-in-out infinite;
}
.cta-octo img { width: 100%; height: 100%; object-fit: contain; opacity: 0.5; filter: drop-shadow(0 0 60px rgba(79,214,147,0.3)); }
.final-cta .container { position: relative; z-index: 1; }
.final-cta h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 16px 0 24px;
  text-wrap: balance;
}
.final-cta h2 em { font-style: italic; color: var(--accent); }
.final-cta p { color: var(--ink-1); font-size: 17px; margin-bottom: 36px; max-width: 58ch; margin-left: auto; margin-right: auto; line-height: 1.55; }
.final-cta .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ========== Footer ========== */
footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--rule);
  color: var(--ink-2); font-size: 13px;
  background: rgba(2,14,8,0.92);
  backdrop-filter: blur(14px);
  position: relative;
}
footer .grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 860px) { footer .grid { grid-template-columns: 1fr 1fr; } }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 26px; color: var(--ink-0); margin-bottom: 14px; }
.foot-brand b { font-weight: 400; }
.foot-brand b em { font-style: normal; color: var(--accent); }
.foot-desc { max-width: 36ch; color: var(--ink-2); line-height: 1.55; font-size: 13px; }
footer h6 {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-1);
  margin-bottom: 16px;
}
footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
footer ul a { color: var(--ink-2); transition: color .2s; }
footer ul a:hover { color: var(--accent-2); }
footer .bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-wrap: wrap; gap: 16px;
}
footer .bottom .domains { display: flex; gap: 12px; color: var(--ink-3); flex-wrap: wrap; }
footer .bottom .domains em { color: var(--accent); font-style: normal; }

/* ========== Reveal ========== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01s !important; animation-iteration-count: 1 !important; transition-duration: 0.01s !important; }
}

@media (max-width: 560px) {
  .container { padding: 0 24px; }
  .eyebrow {
    white-space: normal;
    letter-spacing: 0.16em;
    line-height: 1.5;
  }
  .section-head h2 {
    font-size: 32px;
    line-height: 1.08;
    max-width: 100%;
    text-wrap: wrap;
    overflow-wrap: anywhere;
  }
  .section-head .hed-aside {
    max-width: 100%;
    font-size: 15px;
  }
  .pillar {
    padding: 24px;
    border-radius: 14px;
    min-height: auto;
  }
  .pillar .pillar-art {
    height: 150px;
    margin: -24px -24px 22px;
  }
  .art-chat .mini-bubble {
    max-width: 82%;
    white-space: normal;
  }
  .hero {
    min-height: auto;
    padding: 116px 0 56px;
  }
  .hero-grid { gap: 38px; }
  .hero-copy,
  .hero-stage {
    width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
  }
  .hero h1 {
    font-size: 43px;
    line-height: 1.06;
    letter-spacing: 0;
    max-width: 10.8ch;
  }
  .hero .lede {
    width: 100%;
    max-width: 34ch;
    font-size: 15px;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }
  .hero .trust {
    gap: 12px;
    letter-spacing: 0.06em;
  }
  .hero .trust .sep { display: none; }
  .hero-stage {
    height: 620px;
    justify-content: center;
  }
  .hero-orbit { width: min(360px, 100%); }
  .conversation-action {
    width: 100%;
    min-height: 590px;
    grid-template-rows: auto 70px auto 86px auto;
  }
  .conversation-action::before {
    inset: 4% -2% 0;
    border-radius: 30px;
  }
  .incoming-bubble {
    width: 100%;
    padding: 17px 18px;
    border-radius: 20px 20px 20px 7px;
  }
  .incoming-bubble strong {
    font-size: 18px;
  }
  .intent-core {
    width: min(244px, 92%);
    min-height: 104px;
  }
  .flow-spine span {
    width: 94px;
  }
  .flow-spine span:first-child,
  .flow-spine span:last-child {
    bottom: -100px;
  }
  .outcome-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .outcome-card {
    min-height: auto;
    display: grid;
    grid-template-columns: 38px 1fr;
    column-gap: 12px;
    align-items: center;
    padding: 13px;
  }
  .outcome-icon {
    grid-row: span 3;
    margin-bottom: 0;
  }
  .outcome-card p {
    margin-top: 3px;
  }
  .ai-execution {
    left: auto;
    right: 50%;
    bottom: 0;
    width: min(286px, 86%);
    transform: translateX(50%);
  }
  .phone-mock {
    width: min(270px, calc(100vw - 80px));
    border-radius: 34px;
  }
  .phone-mock .head-icons { gap: 8px; }
  .phone-mock .phone-head .meta h5 { font-size: 12px; }
  .phone-mock .phone-head .meta .status { font-size: 8px; letter-spacing: 0.08em; }
  .bubble {
    max-width: 86%;
    font-size: 12px;
    padding: 8px 11px;
  }
}

/* ========== Hero simples: chat card + trilho de execução ==========
   Placeholder até o vídeo oficial do hero. Reusa .bubble/.ai-tag globais
   e a animação de thread do app.js (seção 5). */
.hero-stage-simple {
  height: auto;
  min-height: 560px;
  flex-direction: column;
  gap: 22px;
}
@media (max-width: 980px) { .hero-stage-simple { min-height: 480px; } }

.chat-card {
  position: relative;
  width: min(460px, 100%);
  border-radius: 24px;
  background: linear-gradient(180deg, #0d2a1c, #04140c);
  border: 1px solid rgba(200,230,210,0.16);
  box-shadow:
    0 50px 90px -34px rgba(0,0,0,0.85),
    0 0 110px -18px rgba(79,214,147,0.28),
    inset 0 1px 0 rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: float 7s ease-in-out infinite;
}
.chat-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  opacity: .7;
}

.chat-card .chat-head {
  padding: 16px 18px 14px;
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent);
  border-bottom: 1px solid var(--rule);
}
.chat-card .avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  display: grid; place-items: center;
  color: var(--bg-0); font-weight: 600; font-size: 15px;
  position: relative; flex-shrink: 0;
}
.chat-card .avatar::after {
  content: "";
  position: absolute; right: -1px; bottom: -1px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--whatsapp);
  border: 2px solid #0d2a1c;
}
.chat-card .meta { flex: 1; min-width: 0; }
.chat-card .meta h5 { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-card .meta .status { font-family: var(--font-mono); font-size: 9px; color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 3px; }
.chat-card .chat-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(79,214,147,0.3);
  background: rgba(79,214,147,0.08);
  padding: 5px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.chat-card .thread {
  padding: 18px 16px 10px;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  gap: 7px;
  /* Era 320px com as bolhas coladas embaixo: sobrava um buraco de ~110px no
     topo do card. Com 4 bolhas o conteudo ocupa ~240px. */
  min-height: 248px;
  overflow: hidden;
}
@media (max-width: 560px) { .chat-card .thread { min-height: 226px; } }

.chat-card .chat-foot {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.chat-card .foot-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: footPulse 1.6s ease-in-out infinite;
}
@keyframes footPulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.exec-rail {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  width: min(460px, 100%);
}

/* ========== Painel de execução do hero ==========
   Mostra o que roda por trás da conversa: ferramenta acionada, chamada e
   resultado. Reaproveita a linguagem visual dos tool-nodes do engine antigo. */
.ops-panel {
  width: min(460px, 100%);
  border: 1px solid rgba(126, 233, 177, 0.20);
  border-radius: 18px;
  padding: 13px 14px 12px;
  background: linear-gradient(180deg, rgba(6, 26, 16, 0.82), rgba(2, 14, 8, 0.72));
  box-shadow: 0 26px 58px -34px rgba(0, 0, 0, 0.95);
}
.ops-head {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.ops-head strong { font-weight: 500; color: var(--ink-1); }
.ops-head .ops-meta { margin-left: auto; color: var(--ink-3); }
.ops-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: footPulse 1.6s ease-in-out infinite;
}

.ops-tools { display: flex; gap: 7px; padding: 12px 0 2px; }
.ops-tool {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 6px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: rgba(200, 230, 210, 0.03);
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color .3s ease, border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.ops-tool i { display: grid; place-items: center; width: 13px; height: 13px; flex-shrink: 0; }
.ops-tool i svg { width: 100%; height: 100%; }
.ops-tool b { font-weight: 500; }
.ops-tool.lit {
  color: var(--bg-0);
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 26px -6px rgba(79, 214, 147, 0.75);
}
.ops-tool.used { color: var(--ink-1); border-color: rgba(79, 214, 147, 0.34); background: rgba(79, 214, 147, 0.08); }

.ops-log {
  display: flex; flex-direction: column; justify-content: flex-end;
  gap: 6px;
  min-height: 62px;
  padding-top: 11px;
}
.ops-line {
  display: flex; align-items: baseline; gap: 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  opacity: 0;
  transform: translateY(6px);
  animation: bubble-in .4s ease forwards;
}
.ops-line .call { color: var(--accent-2); white-space: nowrap; }
.ops-line .arrow { color: var(--ink-3); }
.ops-line .res { color: var(--ink-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-line.pending .res { color: var(--ink-3); }
.ops-line.pending .call { color: var(--ink-2); }

@media (max-width: 560px) {
  .ops-tool b { display: none; }
  .ops-tool { gap: 0; }
  .ops-line { font-size: 9.5px; }
}
.exec-rail .exec-step { padding-top: 0; flex: 1; }
@media (max-width: 560px) {
  .exec-rail { flex-direction: column; gap: 4px; }
}
.exec-rail .exec-step span { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.5; }
.exec-rail .exec-step { align-items: start; }

/* ========== Modo perf-lite ==========
   Ativado via JS (máquina fraca detectada ou watchdog do líquido).
   Corta o que pesa em GPU fraca: backdrop-filter (re-blur constante),
   filter no canvas e animações decorativas. O chat do hero (funcional)
   continua animando. */
html.perf-lite #liquid-canvas { filter: none; }
html.perf-lite *,
html.perf-lite *::before,
html.perf-lite *::after {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html.perf-lite *:not(.thread):not(.thread *),
html.perf-lite *:not(.thread):not(.thread *)::before,
html.perf-lite *:not(.thread):not(.thread *)::after {
  animation: none !important;
}
/* blur estático menor no fundo do hero (era 38px animado) */
html.perf-lite header.hero::before { filter: blur(20px) saturate(1.1); }
/* nav perde o vidro fosco → fundo sólido pra manter legível */
html.perf-lite .nav { background: rgba(4, 16, 10, 0.94); }
