/* Landing do VVPost: os mesmos tokens do app (docs/DESIGN-SYSTEM.md, seção 2). */
@font-face {
  font-family: 'Inter Variable';
  font-weight: 100 900;
  font-display: swap;
  src: url('inter-latin-wght-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'JetBrains Mono Variable';
  font-weight: 100 800;
  font-display: swap;
  src: url('jetbrains-mono-latin-wght-normal.woff2') format('woff2-variations');
}

:root {
  --surface: #0b0c0f;
  --panel: #11141a;
  --elevated: #171b23;
  --border: #282e3a;
  --border-subtle: #1f232c;
  --fg: #e7eaf0;
  --muted: #929bad;
  --faint: #7d8498;
  --accent: #8b7cff;
  --accent-hover: #9d90ff;
  --accent-pressed: #7565f0;
  --cyan: #55b8e8;
  --success: #39c69a;
  --warning: #e8b45b;
  --danger: #f07178;
  --info: #6aa9ff;
  --sans: 'Inter Variable', Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono Variable', 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --radius: 6px;
  --radius-card: 8px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--fg);
  font: 15px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
code, .mono { font-family: var(--mono); font-size: 0.86em; }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Valores que o Victor ainda vai decidir: visíveis de propósito até serem trocados. */
.ph {
  overflow-wrap: anywhere;
  border: 1px dashed var(--warning);
  background: rgb(232 180 91 / 0.1);
  color: var(--warning);
  border-radius: 4px;
  padding: 0 4px;
  font-family: var(--mono);
  font-size: 0.85em;
}

header.top {
  position: sticky; top: 0; z-index: 10;
  background: rgb(11 12 15 / 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
header.top .wrap { display: flex; align-items: center; gap: 24px; height: 52px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 600; }
.brand:hover { text-decoration: none; }
nav.links { display: flex; gap: 20px; margin-left: auto; font-size: 13px; }
nav.links a { color: var(--muted); }
nav.links a:hover { color: var(--fg); text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 16px;
  border-radius: var(--radius);
  font: 600 14px var(--sans);
  border: 1px solid var(--border);
  background: var(--elevated); color: var(--fg);
  transition: background-color 120ms;
}
.btn:hover { text-decoration: none; background: var(--border); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.btn.primary:hover { background: var(--accent-hover); }
.btn.sm { height: 30px; padding: 0 12px; font-size: 13px; }

.hero { padding: 88px 0 56px; text-align: center; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; background: var(--panel); }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; letter-spacing: -0.02em; margin: 20px auto 16px; max-width: 820px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { color: var(--muted); font-size: 18px; max-width: 680px; margin: 0 auto 28px; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .note { margin-top: 12px; font-size: 12px; color: var(--faint); }

.shot { margin-top: 48px; border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; box-shadow: 0 24px 64px -24px rgb(0 0 0 / 0.8); }

.gallery { display: grid; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 24px; }
.frame { margin: 0; }
.frame img { border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: 0 16px 48px -24px rgb(0 0 0 / 0.8); }
.frame figcaption { margin-top: 12px; color: var(--muted); font-size: 14px; }
.frame figcaption b { color: var(--fg); font-weight: 600; }

section { padding: 72px 0; border-top: 1px solid var(--border-subtle); }
section h2 { font-size: 28px; letter-spacing: -0.01em; margin: 0 0 8px; }
section p.sub { color: var(--muted); margin: 0 0 32px; max-width: 720px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 20px; }
.card h3 { margin: 0 0 6px; font-size: 15px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.card .tag { font: 500 11px var(--mono); color: var(--accent); margin-bottom: 10px; display: block; }

.metrics { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.metric { border: 1px solid var(--border); border-radius: var(--radius-card); padding: 16px 20px; background: var(--panel); }
.metric b { display: block; font: 600 26px var(--mono); }
.metric span { color: var(--muted); font-size: 13px; }
.grid + .metrics { margin-top: 16px; }
.fine { margin: 12px 0 0; font-size: 12px; color: var(--faint); }

.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.plan { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.plan.featured { border-color: var(--accent); }
.plan header h3 { margin: 0; font-size: 18px; }
.plan .price { font: 600 28px var(--mono); }
.plan .price small { font: 400 13px var(--sans); color: var(--muted); }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; }
.plan li::before { content: '✓'; color: var(--success); margin-right: 8px; }
.plan .cta { margin-top: auto; }

table.compare { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 32px; }
table.compare th, table.compare td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border-subtle); }
table.compare th { color: var(--muted); font-weight: 500; font-size: 12px; }
table.compare td:not(:first-child) { text-align: center; width: 160px; }
.yes { color: var(--success); }
.no { color: var(--faint); }

.downloads { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

footer { border-top: 1px solid var(--border); padding: 32px 0 48px; color: var(--faint); font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-left: auto; }
footer a { color: var(--muted); }

@media (max-width: 720px) {
  .gallery { grid-template-columns: 1fr; }
  nav.links { display: none; }
  header.top .btn { margin-left: auto; }
  table.compare td:not(:first-child) { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Página do projeto (GitHub Pages): troca de idioma, comando e cards que são links. */
.lang { font-size: 13px; color: var(--muted); }
nav.links + .lang { margin-left: 4px; }
a.card { display: block; color: inherit; }
a.card:hover { text-decoration: none; border-color: var(--accent); }
a.card h3 { color: var(--fg); }
pre.cmd { margin: 0; padding: 16px 20px; overflow-x: auto; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-card); font-size: 14px; line-height: 1.7; }
@media (max-width: 720px) {
  header.top .lang { margin-left: auto; }
  header.top .lang + .btn { margin-left: 0; }
}

/* Topo: a chamada de valor e o vídeo do app, com os passos dele. */
.hero p.value { font-size: clamp(17px, 2.2vw, 21px); font-weight: 600; color: var(--fg); max-width: 720px; margin: 0 auto 16px; }
.tour { margin: 48px 0 0; }
.tour video { display: block; width: 100%; height: auto; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: 0 24px 64px -24px rgb(0 0 0 / 0.8); }
.tour figcaption { margin-top: 16px; text-align: left; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(5, minmax(0, 1fr)); font-size: 13px; color: var(--muted); }
.steps li { counter-increment: step; border-top: 2px solid var(--border); padding-top: 10px; }
.steps li::before { content: counter(step); font: 600 12px var(--mono); color: var(--accent); margin-right: 6px; }
.steps b { color: var(--fg); font-weight: 600; display: inline; }
.steps b::after { content: ''; display: block; }
.tour .fine { display: block; text-align: center; margin-top: 16px; }

/* Comparação: as três ferramentas separadas convergem no VVPost. */
.converge { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tool { background: var(--panel); border: 1px dashed var(--border); border-radius: var(--radius-card); padding: 20px; }
.tool h3, .hub h3 { margin: 0 0 6px; font-size: 15px; }
.tool p, .hub p { margin: 0; color: var(--muted); font-size: 14px; }
.tool .tag, .hub .tag { font: 500 11px var(--mono); color: var(--faint); margin-bottom: 10px; display: block; }
.joint { position: relative; height: 28px; margin: 0 calc(100% / 6); border: 2px solid var(--accent); border-top: 0; border-radius: 0 0 10px 10px; opacity: 0.7; }
.joint::after { content: ''; position: absolute; left: 50%; top: 100%; height: 24px; border-left: 2px solid var(--accent); transform: translateX(-1px); }
.hub { margin-top: 24px; background: linear-gradient(180deg, rgb(139 124 255 / 0.12), var(--panel)); border: 1px solid var(--accent); border-radius: var(--radius-card); padding: 24px; }
.hub .tag { color: var(--accent); }
.hub h3 { font-size: 18px; }
.chips { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); }
.chips li { border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; background: var(--surface); }
.chips b { color: var(--fg); font-weight: 600; margin-right: 4px; }

@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
  .converge { grid-template-columns: 1fr; }
  .joint { height: 24px; margin: 0 auto; width: 0; border: 0; border-left: 2px solid var(--accent); border-radius: 0; }
  .joint::after { display: none; }
}

/* Segundo convite para baixar, logo depois do vídeo: quem já entendeu experimenta sem rolar até o fim. */
.download { margin: 40px auto 0; max-width: 760px; padding: 24px; background: linear-gradient(180deg, rgb(139 124 255 / 0.12), var(--panel)); border: 1px solid var(--accent); border-radius: var(--radius-card); }
.download-title { margin: 0 0 16px; color: var(--muted); }
.download-title b { color: var(--fg); font-size: 18px; display: block; margin-bottom: 4px; }
.download .note a { color: var(--muted); text-decoration: underline; }

/* Hierarquia: cada passo da página (por que existe, como funciona, o que faz, agentes, experimentar) tem um rótulo
   acima do título, e o detalhe de cada peça fica recolhido para não competir com o principal. */
.kicker { display: block; font: 600 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.card details { margin-top: 8px; font-size: 14px; color: var(--muted); }
.card details summary { cursor: pointer; color: var(--accent); font-size: 13px; }
.card details p { margin-top: 6px; }

/* Código real, dependências no mock: o caminho do agente até a API local, com os terceiros simulados. */
.arch { margin: 0 0 24px; display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.arch-node, .arch-check { position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 16px; font-size: 13px; color: var(--muted); }
.arch-node b, .arch-check b { display: block; color: var(--fg); font-size: 14px; margin-bottom: 4px; }
.arch-node:not(:nth-child(4))::after { content: '→'; position: absolute; right: -14px; top: 50%; transform: translateY(-50%); color: var(--accent); font-weight: 600; }
.arch-node.core { border-color: var(--accent); }
.arch-node.real { border-color: var(--accent); background: linear-gradient(180deg, rgb(139 124 255 / 0.12), var(--panel)); }
.arch-node.mock { border-style: dashed; }
.arch-check { grid-column: 2 / 4; text-align: center; }
.flow-steps { counter-reset: fs; list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); font-size: 14px; color: var(--muted); }
.flow-steps li { counter-increment: fs; border-top: 2px solid var(--border); padding-top: 10px; }
.flow-steps li::before { content: counter(fs); font: 600 12px var(--mono); color: var(--accent); margin-right: 6px; }
@media (max-width: 720px) {
  .arch, .flow-steps { grid-template-columns: 1fr; }
  .arch-node:not(:nth-child(4))::after { content: '↓'; right: auto; left: 50%; top: auto; bottom: -16px; transform: translateX(-50%); }
  .arch-check { grid-column: auto; }
}
