/* ZPE Desktop — landing + docs
   Paleta do próprio app (wa-dark) + laranja 3 Lados como acento. */

:root {
  --bg: #0b1216;
  --bg-raise: #111b21;
  --panel: #16242c;
  --panel-2: #1c2f39;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e9edef;
  --muted: #8696a0;
  --brand: #f09700;
  --brand-soft: rgba(240, 151, 0, 0.14);
  --green: #00a884;
  --green-soft: rgba(0, 168, 132, 0.15);
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --display: "Montserrat", sans-serif;
  --body: "Figtree", sans-serif;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* textura de pontos, mesmo padrão do fundo do chat do app */
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 26px 26px;
}

::selection { background: var(--brand); color: #14100a; }

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

code, pre, .mono { font-family: var(--mono); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- topo ---------- */

.nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(11, 18, 22, 0.82);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0;
}
.nav-logo { width: 30px; height: 30px; }
.nav-name {
  font-family: var(--display); font-weight: 800; font-size: 15px;
  letter-spacing: 0.02em;
}
.nav-name small {
  display: block; font-family: var(--mono); font-weight: 400;
  font-size: 10px; color: var(--muted); letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav-links { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.cta {
  color: #14100a; background: var(--brand); padding: 8px 16px;
  border-radius: 999px; font-weight: 700;
}
.nav-links a.cta:hover { filter: brightness(1.08); }

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

.hero {
  position: relative; overflow: hidden;
  padding: 96px 0 72px;
}
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto;
  height: 130%; pointer-events: none;
  background:
    radial-gradient(600px 420px at 18% 30%, rgba(240, 151, 0, 0.16), transparent 65%),
    radial-gradient(520px 380px at 82% 12%, rgba(0, 168, 132, 0.12), transparent 60%);
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px;
  align-items: center;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--brand);
  border: 1px solid rgba(240, 151, 0, 0.35);
  background: var(--brand-soft);
  padding: 6px 12px; border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(38px, 5.4vw, 58px);
  font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.hero h1 em {
  font-style: normal; color: var(--brand);
}
.hero p.lead {
  color: var(--muted); font-size: 18px; max-width: 34em; margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 15px;
  padding: 13px 24px; border-radius: 12px; transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #14100a; box-shadow: 0 8px 30px rgba(240, 151, 0, 0.25); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.2); }

.hero-note { margin-top: 18px; font-size: 13px; color: var(--muted); }
.hero-note code { color: var(--text); font-size: 12px; }

/* mock de janela */
.appmock {
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  background: var(--bg-raise);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
  transform: rotate(1.2deg);
}
.appmock-bar {
  display: flex; align-items: center; gap: 8px;
  background: #0d161b; padding: 10px 14px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; color: var(--muted);
}
.appmock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3942; }
.appmock-bar i:first-child { background: var(--brand); }
.appmock-body { display: grid; grid-template-columns: 52px 1fr; min-height: 300px; }
.appmock-rail {
  background: #0d161b; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 0;
}
.appmock-rail span {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--panel-2); font-family: var(--mono); font-size: 10px; color: var(--muted);
  position: relative;
}
.appmock-rail span.on { outline: 2px solid var(--green); color: var(--text); }
.appmock-rail span.badge::after {
  content: "1"; position: absolute; top: -4px; right: -4px;
  background: var(--brand); color: #14100a; font-size: 8px; font-weight: 700;
  width: 14px; height: 14px; border-radius: 50%; display: grid; place-items: center;
}
.appmock-chat { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.bubble {
  max-width: 75%; padding: 9px 13px; border-radius: 10px; font-size: 13px;
  animation: pop 0.5s ease backwards;
}
.bubble.in { background: var(--panel-2); align-self: flex-start; border-top-left-radius: 3px; }
.bubble.out { background: #005c4b; align-self: flex-end; border-top-right-radius: 3px; }
.bubble .ticks { font-size: 10px; color: #53bdeb; margin-left: 8px; }
.bubble:nth-child(1) { animation-delay: 0.25s; }
.bubble:nth-child(2) { animation-delay: 0.55s; }
.bubble:nth-child(3) { animation-delay: 0.85s; }
.bubble:nth-child(4) { animation-delay: 1.15s; }
.bubble.sys {
  align-self: center; background: var(--brand-soft); color: var(--brand);
  font-family: var(--mono); font-size: 11px; border: 1px solid rgba(240, 151, 0, 0.3);
}
@keyframes pop {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

/* reveals */
.reveal { animation: rise 0.7s ease backwards; }
.reveal.d1 { animation-delay: 0.08s; }
.reveal.d2 { animation-delay: 0.16s; }
.reveal.d3 { animation-delay: 0.24s; }
.reveal.d4 { animation-delay: 0.32s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

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

section { padding: 72px 0; }
.section-kicker {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 10px;
}
section h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; margin-bottom: 14px; letter-spacing: -0.01em; }
section > .wrap > p.sub { color: var(--muted); max-width: 44em; margin-bottom: 40px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: rgba(240, 151, 0, 0.4); transform: translateY(-3px); }
.card .ico {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); font-size: 18px; margin-bottom: 14px;
}
.card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--muted); }

/* download */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dl {
  background: linear-gradient(160deg, var(--panel), var(--bg-raise));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column; gap: 8px;
}
.dl .os { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.dl h3 { font-size: 20px; font-weight: 800; }
.dl p { font-size: 13.5px; color: var(--muted); flex: 1; }
.dl .art { font-family: var(--mono); font-size: 12px; color: var(--text); background: rgba(0,0,0,0.3); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; overflow-x: auto; white-space: nowrap; }
.dl a.go { margin-top: 12px; font-weight: 700; font-family: var(--display); font-size: 14px; }

/* passos resumidos */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: 56px 1fr; gap: 20px;
  padding: 22px 0; border-bottom: 1px dashed var(--line);
}
.step:last-child { border-bottom: 0; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--mono); font-size: 22px; color: var(--brand); font-weight: 500;
  padding-top: 2px;
}
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14.5px; max-width: 52em; }

/* ---------- docs ---------- */

.docs-layout {
  display: grid; grid-template-columns: 240px 1fr; gap: 48px;
  padding: 48px 0 96px; align-items: start;
}
.toc {
  position: sticky; top: 84px;
  border-left: 2px solid var(--line);
  font-size: 13.5px;
  display: flex; flex-direction: column; gap: 2px;
}
.toc a {
  color: var(--muted); padding: 5px 0 5px 16px; margin-left: -2px;
  border-left: 2px solid transparent;
}
.toc a:hover { color: var(--text); text-decoration: none; }
.toc a.h { color: var(--text); font-weight: 700; margin-top: 12px; }
.toc a.on { color: var(--brand); border-left-color: var(--brand); }

.doc { min-width: 0; }
.doc h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; margin-bottom: 12px; letter-spacing: -0.02em; }
.doc > p.lead { color: var(--muted); font-size: 17px; margin-bottom: 40px; max-width: 46em; }
.doc h2 {
  font-size: 24px; font-weight: 800; margin: 56px 0 14px;
  padding-top: 24px; border-top: 1px solid var(--line);
}
.doc h3 { font-size: 17px; font-weight: 700; margin: 28px 0 10px; }
.doc p, .doc li { color: #c6cfd3; font-size: 15px; }
.doc p { margin-bottom: 14px; }
.doc ul, .doc ol { margin: 0 0 16px 22px; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--brand); }
.doc code {
  background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line);
  border-radius: 6px; padding: 1.5px 6px; font-size: 13px;
}
.doc pre {
  background: #0a1014; border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; overflow-x: auto; margin: 14px 0 20px;
  font-size: 13px; line-height: 1.7;
}
.doc pre code { background: none; border: 0; padding: 0; }
.doc pre .c { color: #6b7d87; }
.doc pre .k { color: var(--brand); }

.callout {
  border: 1px solid; border-radius: 12px; padding: 14px 18px; margin: 18px 0 22px;
  font-size: 14px;
}
.callout strong { font-family: var(--display); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; display: block; margin-bottom: 4px; }
.callout.warn { border-color: rgba(240, 151, 0, 0.4); background: var(--brand-soft); color: #f3d9ac; }
.callout.warn strong { color: var(--brand); }
.callout.ok { border-color: rgba(0, 168, 132, 0.4); background: var(--green-soft); color: #bde5da; }
.callout.ok strong { color: var(--green); }

/* abas de SO */
.os-tabs { display: flex; gap: 8px; margin: 20px 0 0; flex-wrap: wrap; }
.os-tabs button {
  font-family: var(--display); font-weight: 700; font-size: 14px;
  background: var(--panel); color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 20px;
  cursor: pointer; transition: all 0.15s ease;
}
.os-tabs button:hover { color: var(--text); }
.os-tabs button.on { background: var(--brand); border-color: var(--brand); color: #14100a; }
.os-pane { display: none; }
.os-pane.on { display: block; animation: rise 0.35s ease; }

table { border-collapse: collapse; width: 100%; margin: 14px 0 22px; font-size: 14px; }
th, td { text-align: left; padding: 10px 14px; border: 1px solid var(--line); }
th { font-family: var(--display); font-size: 12.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); background: rgba(255,255,255,0.03); }
td code { white-space: nowrap; }

/* rodapé */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; }
.foot { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13.5px; flex-wrap: wrap; }
.foot img { width: 22px; height: 22px; opacity: 0.9; }
.foot .sp { flex: 1; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .appmock { transform: none; }
  .cards, .dl-grid { grid-template-columns: 1fr; }
  .docs-layout { grid-template-columns: 1fr; }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 4px 16px; border-left: 0; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
  .toc a { border-left: 0; padding: 4px 0; }
  .toc a.h { margin-top: 0; }
}
