/* ============================================================
   Commerce Control — estética flat e técnica
   Fundo quase-preto, superfícies separadas por bordas hairline,
   telemetria em mono. Sem sombras, sem glows, sem degradês.
   ============================================================ */

:root {
  --bg: #070809;
  --surface: #0d0e10;
  --ink: #f5f6f7;
  --ink-2: #c9cdd3;
  --muted: #8a8f98;
  --faint: #5c6067;
  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.055);
  --accent: #d97757;
  --accent-ink: #f0b7a2;
  --green: #3ecf8e;
  --font: "Inter", -apple-system, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 12px;
  --container: 1480px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--muted);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: -0.008em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: rgba(217, 119, 87, 0.35); color: #fff; }

h1, h2, h3 {
  color: var(--ink);
  font-weight: 560;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.br-lg { display: none; }
@media (min-width: 760px) { .br-lg { display: inline; } }

/* ---------- utilidades ---------- */

.label {
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 16px;
}

.muted { color: var(--muted); }

.dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  flex: none;
}
.dot-blue  { background: var(--accent); }
.dot-green { background: var(--green); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 510;
  color: var(--accent-ink);
  border: 1px solid rgba(217, 119, 87, 0.35);
  border-radius: 100px;
  padding: 4px 11px;
  white-space: nowrap;
}

.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 20px;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 520;
  letter-spacing: -0.008em;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: #e08a6d; }

.btn-ghost {
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.22); color: var(--ink); }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(7, 8, 9, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}
.nav.scrolled { border-bottom-color: var(--line-soft); }

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 590;
  letter-spacing: -0.014em;
}

.nav-mark {
  width: 15px; height: 15px;
  border-radius: 50%;
  background: #dfe2e8;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
}
.nav-mark::after {
  content: "";
  position: absolute;
  inset: 4px 3px;
  border-radius: 50%;
  background: var(--bg);
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 13.5px;
  font-weight: 510;
  color: var(--muted);
}
.nav-links a { transition: color 0.18s; }
.nav-links a:hover { color: var(--ink); }

.nav-actions { margin-left: auto; }

/* ---------- hero ---------- */

.hero {
  padding: 122px 0 80px;
  border-bottom: 1px solid var(--line-soft);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 510;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 4px 12px 4px 4px;
  margin-bottom: 28px;
  transition: border-color 0.18s;
}
.badge:hover { border-color: rgba(255, 255, 255, 0.2); }

.badge-tag {
  border: 1px solid rgba(217, 119, 87, 0.25);
  color: var(--accent-ink);
  border-radius: 100px;
  padding: 2px 9px;
  font-size: 12px;
}

.badge-arrow { color: var(--faint); }

.hero-copy h1 {
  font-size: clamp(38px, 4.6vw, 66px);
  font-weight: 560;
  letter-spacing: -0.032em;
  line-height: 1.03;
  margin-bottom: 22px;
}

.hero-sub {
  max-width: 560px;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* o agente: blob + telemetria em mono */

.hero-agent {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.agent-stage {
  position: relative;
  padding: 18px;
}

.blob-stage {
  position: relative;
  width: min(540px, 88vw);
  height: clamp(300px, 36vw, 480px);
}

/* cantos técnicos do palco, estilo HUD */
.hud-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--line);
  pointer-events: none;
}
.hud-c-tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hud-c-tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.hud-c-bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.hud-c-br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

/* etiquetas orbitais: navegação em volta do agente */
.hud-tag {
  position: absolute;
  z-index: 2;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
  padding: 5px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: rgba(7, 8, 9, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  white-space: nowrap;
  transition: color 0.18s, border-color 0.18s, transform 0.25s ease-out;
}
.hud-tag:hover {
  color: var(--ink);
  border-color: var(--line);
  transform: translateY(-1px);
}
.hud-tag-tr { top: 7%; right: -3%; }
.hud-tag-l  { top: 44%; left: -7%; }
.hud-tag-r  { bottom: 27%; right: -8%; }
.hud-tag-b  { bottom: -1%; left: 16%; }

/* stats com contagem, telemetria do rodapé do hero */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 72px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
}

.hero-stats .stat {
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
  padding: 20px 22px;
  background: var(--bg);
}

.hero-stats dd {
  font-family: var(--mono);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.hero-stats dt {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--faint);
}

[data-blob] { position: relative; }
/* canvas com sangria de 25% por lado: a deformação nunca encosta na borda */
[data-blob] canvas {
  position: absolute;
  inset: -25%;
  width: 150% !important;
  height: 150% !important;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.7s ease;
}
[data-blob].blob-ready canvas { opacity: 1; }

/* fallback quando WebGL não está disponível — só surge se o WebGL demorar/falhar */
.blob-fallback {
  position: absolute;
  inset: 14%;
  border-radius: 46% 54% 58% 42% / 48% 44% 56% 52%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.55), transparent 42%),
    radial-gradient(circle at 68% 76%, #83766e, transparent 60%),
    radial-gradient(circle at 50% 45%, #aba39b, #171311 80%);
  opacity: 0;
  animation:
    blob-fade-in 0.7s ease 2.4s forwards,
    blob-morph 12s ease-in-out infinite alternate;
}

@keyframes blob-fade-in { to { opacity: 1; } }
.blob-stage.blob-ready .blob-fallback { display: none; }

@keyframes blob-morph {
  0%   { border-radius: 46% 54% 58% 42% / 48% 44% 56% 52%; transform: rotate(-3deg) scale(1); }
  50%  { border-radius: 56% 44% 42% 58% / 44% 58% 42% 56%; transform: rotate(2deg) scale(1.03); }
  100% { border-radius: 42% 58% 52% 48% / 56% 42% 58% 44%; transform: rotate(-2deg) scale(0.98); }
}

/* o agente-companheiro: orbe fixo que viaja entre os palcos da página.
   Com ele ativo, os palcos viram estações vazias (fallback oculto). */
body.agent-active .blob-fallback { display: none; }

.agent-orb {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 45; /* abaixo da nav (50), acima do conteúdo */
  transform-origin: 0 0;
  pointer-events: none;
  will-change: transform;
}

.agent-orb canvas {
  position: absolute;
  inset: -25%;
  width: 150% !important;
  height: 150% !important;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.agent-orb.is-ready canvas { opacity: 1; }

/* área clicável circular no miolo do orbe — as hud-tags ficam fora dela */
.agent-orb-hit {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  height: 68%;
  aspect-ratio: 1;
  max-width: 68%;
  border: 0;
  border-radius: 50%;
  background: transparent;
  pointer-events: auto;
  cursor: pointer;
}

.agent-orb-tip {
  position: fixed;
  right: 24px;
  bottom: 112px;
  z-index: 45;
  padding: 5px 11px;
  border: 1px solid var(--line-soft);
  border-radius: 100px;
  background: rgba(7, 8, 9, 0.85);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.agent-orb:hover + .agent-orb-tip.is-on,
.agent-orb:has(:focus-visible) + .agent-orb-tip.is-on {
  opacity: 1;
  transform: translateY(0);
}

.agent-line {
  margin: 4px 0 22px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--faint);
  transition: opacity 0.45s;
}
.agent-line::before { content: "● "; color: var(--accent); font-size: 9px; }
.agent-line.fade { opacity: 0; }

.agent-telemetry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  width: min(480px, 100%);
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 12px;
}

.agent-telemetry li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg);
}

.agent-telemetry span { color: var(--faint); }
.agent-telemetry em {
  margin-left: auto;
  font-style: normal;
  color: var(--ink-2);
}

/* ---------- seções ---------- */

section { position: relative; }

.section-head {
  max-width: 640px;
  margin-bottom: 64px;
}

.section-head h2 {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 560;
}

.section-sub {
  margin-top: 14px;
  max-width: 480px;
}

/* ---------- na prática ---------- */

.ask { padding: 110px 0; }

.ask-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.ask-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s;
}
.ask-card:hover { border-color: var(--line); }

.ask-tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--faint);
}

.ask-quote {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.012em;
}

.ask-result {
  margin-top: auto;
  padding-top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  transition: color 0.2s;
}
.ask-card:hover .ask-result { color: var(--accent-ink); }

/* ---------- narrativa ---------- */

.story {
  padding: 110px 0 30px;
  border-top: 1px solid var(--line-soft);
}

.story-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: 44px 0;
  border-top: 1px solid var(--line-soft);
}

.story-row-flip .story-media { order: 2; }

.story-media {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface);
}

.story-copy h3 {
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 560;
  margin-bottom: 12px;
}

.story-copy > p:not(.label) { max-width: 460px; }

.story-list {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.story-list li,
.check-list li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  color: var(--ink-2);
}

.story-list li::before,
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px; height: 7px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg) scale(0.9);
}

/* ---------- conversa ---------- */

.chat-section { padding: 110px 0; }

.chat-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}

.chat-copy h2 {
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 560;
  margin-bottom: 16px;
}

.chat-copy .muted { max-width: 440px; }

.check-list {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
}

.chat-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d97757;
  border: 1px solid rgba(217, 119, 87, 0.4);
  flex: none;
}
.chat-avatar svg { width: 17px; height: 17px; }

.chat-head-meta { display: flex; flex-direction: column; gap: 1px; }
.chat-head-meta strong {
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 590;
  letter-spacing: -0.011em;
}

.chat-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--faint);
}
.chat-status .dot { width: 5px; height: 5px; }

.chat-body {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 22px 18px 24px;
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.55;
}

.msg-user {
  align-self: flex-end;
  border: 1px solid rgba(217, 119, 87, 0.4);
  border-bottom-right-radius: 4px;
  color: var(--ink-2);
}

.msg-agent {
  align-self: flex-start;
  border: 1px solid var(--line-soft);
  background: var(--bg);
  border-bottom-left-radius: 4px;
  color: var(--muted);
}

.msg-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 13px 14px;
}
.msg-card .chip { align-self: flex-start; }
.msg-card p { font-size: 13px; }

.msg-link {
  font-weight: 510;
  font-size: 13px;
  color: var(--accent-ink);
}

.chat-try { margin-top: 22px; font-size: 13px; color: var(--faint); }

/* mensagens que entram com animação */
.msg-pop {
  animation: msg-pop 0.35s cubic-bezier(0.2, 0.8, 0.3, 1.1) both;
}
@keyframes msg-pop {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

/* indicador de digitação */
.typing {
  display: inline-flex;
  gap: 5px;
  align-self: flex-start;
  padding: 13px 15px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  border-bottom-left-radius: 4px;
}
.typing i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: typing-dot 1.1s ease-in-out infinite;
}
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-dot {
  0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
  30%           { opacity: 1; transform: translateY(-4px); }
}

/* composer estilo Claude */

.chat-composer {
  padding: 14px 18px 16px;
  border-top: 1px solid var(--line-soft);
}

.composer-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px 11px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.2s;
}
.composer-box:hover { border-color: rgba(255, 255, 255, 0.18); }

.composer-text {
  flex: 1;
  font-size: 13.5px;
  color: var(--ink-2);
  min-height: 20px;
}
.composer-text:empty::before {
  content: "Responda ao agente…";
  color: var(--faint);
}

.composer-send {
  width: 34px; height: 34px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  background: #d97757;
  color: #fff;
  cursor: pointer;
  transition: background 0.18s, opacity 0.2s;
}
.composer-send svg { width: 16px; height: 16px; }
.composer-send:hover { background: #e08a6d; }
.composer-send:disabled {
  cursor: default;
  opacity: 0.35;
}

.composer-hint {
  margin-top: 9px;
  text-align: center;
  font-size: 12px;
  color: var(--faint);
  transition: opacity 0.3s;
}
.composer-hint.hidden { opacity: 0; }

.chat-replay {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: center;
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 510;
  color: var(--faint);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.18s;
}
.chat-replay:hover { color: var(--ink-2); }

/* ---------- visualizações (narrativa) ---------- */

.story-media.viz {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  /* grade de pontos: textura técnica, sem degradê */
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1.5px);
  background-size: 24px 24px;
  background-color: var(--surface);
}

/* pipeline: shopify + código + equipe → agente → sua loja */

.pipeline {
  display: grid;
  grid-template-columns: auto 1fr auto 0.85fr auto;
  align-items: stretch;
  width: 90%;
  height: 68%;
}

.pipe-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.pipe-col:last-child { justify-content: center; }

.pipe-node {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
}
.pipe-node strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 560;
  letter-spacing: -0.01em;
}
.pipe-node em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--faint);
}
.pipe-node-out { border-color: rgba(62, 207, 142, 0.4); }
.pipe-node-out em { color: var(--green); }

.pipe-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.pp-base {
  fill: none;
  stroke: rgba(255, 255, 255, 0.11);
  stroke-width: 1;
}

.pp-pulse {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 14 100;
  stroke-dashoffset: 114;
  animation: pp-flow 3s linear infinite;
}
.pp-d2 { animation-delay: -1s; }
.pp-d3 { animation-delay: -2s; }
.pp-out { stroke: var(--green); animation-delay: -0.4s; }
@keyframes pp-flow { to { stroke-dashoffset: 0; } }

.pipe-core {
  width: clamp(88px, 10vw, 128px);
  height: clamp(88px, 10vw, 128px);
  align-self: center;
}
.pipe-core .blob-fallback { inset: 6%; }
[data-blob].blob-ready .blob-fallback { display: none; }

/* árvore do tema shopify sendo lida pelo agente */

.story-media.viz-theme {
  align-items: stretch;
  aspect-ratio: auto; /* a árvore define a altura; nada é cortado */
}

.theme-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 20px 26px 18px;
  font-family: var(--mono);
}

.theme-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.theme-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-2);
}

.theme-path { font-size: 11px; color: var(--faint); }

.theme-tree {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12.5px;
  line-height: 1.5;
}

.t-dir { color: var(--faint); }
.t-dir:not(:first-child) { margin-top: 4px; }

.t-file {
  position: relative;
  padding: 1px 8px 1px 22px;
  color: var(--muted);
  border-radius: 5px;
  transition: background 0.3s, color 0.3s;
}
.t-file::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line-soft);
}
.t-file.scan {
  color: var(--ink);
  background: rgba(217, 119, 87, 0.08);
}
.t-file.scan::before { background: var(--accent); }
.t-file.scan::after {
  content: "●";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 7px;
  color: var(--accent);
}

.theme-status {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--faint);
  transition: opacity 0.3s;
}
.theme-status::before { content: "● "; color: var(--accent); font-size: 9px; }

/* ---------- fluxo ---------- */

.flow {
  padding: 110px 0;
  border-top: 1px solid var(--line-soft);
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  overflow: hidden;
}

.flow-card {
  background: var(--bg);
  padding: 28px 26px 30px;
  transition: background 0.2s;
}
.flow-card:hover { background: var(--surface); }

.flow-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--faint);
  margin-bottom: 16px;
}

.flow-card h3 {
  font-size: 16px;
  font-weight: 590;
  margin-bottom: 8px;
}

.flow-card p { font-size: 13.5px; }

/* ---------- capacidades ---------- */

.caps {
  padding: 110px 0;
  border-top: 1px solid var(--line-soft);
}

.caps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.cap {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: border-color 0.2s;
}
.cap:hover { border-color: var(--line); }

.cap h3 {
  font-size: 15px;
  font-weight: 590;
  margin-bottom: 8px;
}

.cap p { font-size: 13.5px; }

/* ---------- acesso antecipado ---------- */

.cta {
  padding: 130px 0 140px;
  border-top: 1px solid var(--line-soft);
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.cta h2 {
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 560;
  margin-bottom: 18px;
}

.cta-sub {
  max-width: 560px;
  margin-bottom: 30px;
}

.wait-form {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 460px;
  margin-bottom: 14px;
}

.wait-input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 13.5px;
  letter-spacing: -0.008em;
  transition: border-color 0.18s;
}
.wait-input::placeholder { color: var(--faint); }
.wait-input:focus {
  outline: none;
  border-color: rgba(217, 119, 87, 0.65);
}

.wait-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--faint);
}
.wait-note strong { color: var(--ink-2); font-weight: 560; }

.wait-success {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  max-width: 460px;
  margin-bottom: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  color: #7fd8ac;
  border: 1px solid rgba(62, 207, 142, 0.35);
  animation: msg-pop 0.35s cubic-bezier(0.2, 0.8, 0.3, 1.1) both;
}

.wait-success .dot { margin-top: 7px; }

.wait-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 30px;
}

.wait-perks li {
  position: relative;
  padding-left: 22px;
  font-size: 13px;
  color: var(--ink-2);
}
.wait-perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 11px; height: 6px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg) scale(0.9);
}

/* ---------- custo: monte o time ---------- */

.cost {
  padding: 110px 0;
  border-top: 1px solid var(--line-soft);
}

.cost-grid {
  display: grid;
  grid-template-columns: minmax(0, 720px) 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.cost-agent {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.cost-agent-stage {
  width: clamp(180px, 22vw, 300px);
  height: clamp(180px, 22vw, 300px);
}

.cost-agent figcaption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
  font-family: var(--mono);
}
.cost-agent figcaption span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}
.cost-agent figcaption em {
  font-style: normal;
  font-size: 11px;
  color: var(--faint);
}

.cost-card {
  max-width: 720px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}

.cost-row {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 14px;
  padding: 13px 22px;
  background: none;
  border: 0;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-2);
  font-family: inherit;
  font-size: 14px;
  letter-spacing: -0.008em;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.cost-row:first-child { border-top: 0; }
.cost-row:hover { background: rgba(255, 255, 255, 0.025); }

.cost-check {
  position: relative;
  width: 14px;
  height: 14px;
  flex: none;
  border: 1px solid var(--accent);
  border-radius: 4px;
  transition: border-color 0.18s;
}
.cost-check::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 2px;
  background: var(--accent);
  transition: transform 0.18s, opacity 0.18s;
}

.cost-row.is-off { color: var(--faint); }
.cost-row.is-off .cost-check { border-color: var(--line); }
.cost-row.is-off .cost-check::after { opacity: 0; transform: scale(0.4); }

.cost-role { flex: 1; }

.cost-val {
  font-family: var(--mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: color 0.18s;
}
.cost-row.is-off .cost-val {
  text-decoration: line-through;
  color: var(--faint);
}

.cost-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
}
.cost-total > span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--faint);
}
.cost-total strong {
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  text-decoration: line-through;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px;
}
.cost-total em,
.cost-cc em {
  display: inline-block; /* impede o line-through do total de vazar para o sufixo */
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}

.cost-cc {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: var(--accent);
  color: #fff;
}
.cost-cc-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 590;
  letter-spacing: -0.014em;
}
.cost-cc .nav-mark::after { background: var(--accent); }
.cost-cc strong {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.cost-cc em { color: rgba(255, 255, 255, 0.75); }

.cost-saving {
  padding: 13px 22px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--green);
  transition: color 0.2s;
}

.cost-note {
  margin-top: 18px;
  max-width: 560px;
  font-size: 12.5px;
  color: var(--faint);
}

/* ---------- integrações sob demanda ---------- */

.addons {
  padding: 110px 0;
  border-top: 1px solid var(--line-soft);
}

.addon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.addon {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  background: none;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  color: var(--ink-2);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}
.addon:hover { border-color: var(--line); }
.addon.is-on {
  border-color: rgba(217, 119, 87, 0.55);
  background: rgba(217, 119, 87, 0.05);
}

.addon-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
  transition: border-color 0.18s, color 0.18s;
}
.addon.is-on .addon-mark {
  border-color: rgba(217, 119, 87, 0.55);
  color: var(--accent-ink);
}

.addon-name {
  font-size: 13px;
  font-weight: 520;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.addon-badge {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--faint);
}

.addon-check {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.18s, transform 0.18s;
}
.addon-check svg { width: 9px; height: 9px; }
.addon.is-on .addon-check { opacity: 1; transform: none; }

.addon-note {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  transition: color 0.2s;
}
.addon-note.is-active { color: var(--accent-ink); }

/* ---------- bússola HUD ---------- */

.hud-compass {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 13px;
  border: 1px solid var(--line-soft);
  border-radius: 100px;
  background: rgba(7, 8, 9, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}
.hud-compass.is-visible { opacity: 1; }
.hud-compass i {
  width: 1px;
  height: 10px;
  background: var(--line);
}
#hud-angle {
  min-width: 36px;
  text-align: right;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line-soft);
  padding: 68px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 52px;
}

.footer-brand p {
  max-width: 250px;
  font-size: 13px;
  margin: 16px 0 20px;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--faint);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 13px;
}

.footer-col strong {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 590;
  letter-spacing: -0.008em;
  margin-bottom: 5px;
}

.footer-col a {
  color: var(--muted);
  transition: color 0.18s;
  width: fit-content;
}
.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
  font-size: 12.5px;
  color: var(--faint);
}

.footer-social {
  display: flex;
  gap: 16px;
}
.footer-social a {
  color: var(--faint);
  transition: color 0.18s;
}
.footer-social a:hover { color: var(--ink); }
.footer-social svg { width: 16px; height: 16px; display: block; }

/* ---------- responsivo ---------- */

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero { padding-top: 130px; }
  .hero-agent { margin-top: 12px; }
  .hud-tag-l { left: 0; }
  .hud-tag-tr, .hud-tag-r { right: 0; }
  .hero-stats { grid-template-columns: 1fr 1fr; margin-top: 56px; }
}

@media (max-width: 900px) {
  .cost-grid { grid-template-columns: 1fr; }
  .cost-agent { display: none; }
  .flow-grid { grid-template-columns: 1fr 1fr; }
  .caps-grid { grid-template-columns: 1fr 1fr; }
  .ask-grid { grid-template-columns: 1fr 1fr; }
  .chat-grid { grid-template-columns: 1fr; }
  .story-row { grid-template-columns: 1fr; }
  .story-row-flip .story-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .nav-links { display: none; }
  .flow-grid { grid-template-columns: 1fr; }
  .caps-grid { grid-template-columns: 1fr; }
  .ask-grid { grid-template-columns: 1fr; }
  .msg { max-width: 90%; }
  .wait-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .agent-telemetry { grid-template-columns: 1fr; }

  .hud-tag { display: none; }
  .agent-stage { padding: 10px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats dd { font-size: 22px; }
  .hud-compass { display: none; }
  .cost-row, .cost-total, .cost-cc, .cost-saving { padding-left: 16px; padding-right: 16px; }
  .addon-grid { grid-template-columns: 1fr 1fr; }

  .pipeline { width: 94%; height: 76%; }
  .pipe-node { padding: 6px 10px; }
  .pipe-node strong { font-size: 11.5px; }
  .pipe-node em { font-size: 9.5px; }
  .theme-panel { padding: 16px 16px 14px; }
  .theme-tree { font-size: 11.5px; }
  .theme-path { display: none; }
}

/* ---------- movimento reduzido ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .blob-fallback { animation: blob-fade-in 0.7s ease 2.4s forwards; }
  .pp-pulse { animation: none; }
  .hud-compass { display: none; }
}

/* ============================================================
   Capa temporária: "Em breve" com o orbe no centro;
   a senha certa libera o site e o orbe viaja até o hero
   ============================================================ */

.capa {
  position: fixed;
  inset: 0;
  z-index: 44; /* acima da página, abaixo do orbe (45) */
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  cursor: pointer;
  transition: opacity 0.8s ease;
}

body.capa-ativa { overflow: hidden; }
body.capa-ativa .nav,
body.capa-ativa .agent-orb-tip,
body.capa-ativa .hud-compass { visibility: hidden; }

.capa.is-out {
  opacity: 0;
  pointer-events: none;
  cursor: default;
}

/* o texto fica meio por trás: o orbe (z 45) desenha por cima dele */
.capa-breve {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(64px, 14vw, 190px);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
  user-select: none;
}

.capa-form {
  position: absolute;
  left: 50%;
  bottom: 6vh;
  transform: translate(-50%, 8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.capa.is-senha .capa-form {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.capa-senha {
  width: min(340px, 78vw);
  height: 46px;
  padding: 0 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13.5px;
  text-align: center;
  transition: border-color 0.18s;
}
.capa-senha::placeholder { color: var(--faint); }
.capa-senha:focus { outline: none; border-color: var(--accent); }
.capa.is-erro .capa-senha { border-color: #e5484d; }

.capa-hint {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}
.capa.is-erro .capa-hint { color: #e5484d; }

.capa-cta {
  position: absolute;
  left: 50%;
  bottom: 7vh;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  transition: opacity 0.3s ease;
}
.capa.is-senha .capa-cta { opacity: 0; }
