/* AnyVNC — site de apresentação. Sem JavaScript, sem fontes de terceiros, sem estilos inline
   (a CSP do servidor só aceita arquivos do próprio domínio). */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/bricolage-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-latin.woff2") format("woff2");
}

:root {
  --navy: #14263d;
  --navy-2: #1b3556;
  --navy-3: #2a4a73;
  --turq: #20d6bb;
  --mist: #f5faff;
  --white: #ffffff;
  --slate: #4a5b70;
  --line: #d5e2ee;
  --amber-bg: #fbe7c2;
  --amber-ink: #6b4300;
  --ok-bg: #cdf6ee;
  --ok-ink: #0a5a4e;
  --ok-dot: #2bd96b;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --text: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: light;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--mist);
  color: var(--navy);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--turq);
  text-decoration-thickness: 0.18em;
  text-underline-offset: 0.22em;
}
a:hover { text-decoration-color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 4px;
}
.band :focus-visible { outline-color: var(--turq); }

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 8px;
  z-index: 10;
}
.skip:focus { top: 0; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

h1, h2, h3 {
  font-family: var(--display);
  font-optical-sizing: auto;
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-weight: 760;
  font-size: clamp(2.6rem, 5.4vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.028em;
}
h2 {
  font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}
h3 {
  font-weight: 650;
  font-size: 1.4rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; }
.prose { max-width: 62ch; }
.muted { color: var(--slate); }

/* ---------- Cabeçalho ---------- */
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.1rem;
}
.brand { display: inline-flex; line-height: 0; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; font-weight: 600; font-size: 1rem; }
.nav a { text-decoration: none; padding: 0.35rem 0; border-bottom: 3px solid transparent; }
.nav a:hover,
.nav a[aria-current="page"] { border-bottom-color: var(--turq); }

/* ---------- Botões ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem 1rem; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.8em 1.4em;
  background: var(--turq);
  color: var(--navy);
  border: 2px solid var(--navy);
  border-radius: 10px;
  font: 650 1rem/1.2 var(--text);
  text-decoration: none;
}
.btn:hover { box-shadow: 4px 4px 0 var(--navy); transform: translate(-2px, -2px); }
.btn-line { background: transparent; }
.btn-line:hover { background: var(--white); }
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: transform 0.12s ease, box-shadow 0.12s ease; }
}
.note { font-size: 0.98rem; color: var(--slate); margin: 1.1rem 0 0; }

/* ---------- Abertura ---------- */
.hero { padding-block: clamp(2rem, 5vw, 4.5rem) clamp(3rem, 7vw, 6rem); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 13fr);
  gap: clamp(2.2rem, 5vw, 4.5rem);
  align-items: center;
}
.lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.5; max-width: 34ch; margin: 1.4rem 0 1.8rem; }

/* Cena: a tela do usuário e o cursor do técnico. Os valores em cqw escalam com a largura da tela. */
.scene { margin: 0 14px 14px 0; }
.screen {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 16 / 10;
  background: var(--navy-2);
  border: 3px solid var(--navy);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 14px 14px 0 var(--turq);
  font-size: 12px;
}
.win {
  position: absolute;
  left: 8%;
  top: 9%;
  width: 84%;
  background: var(--white);
  color: var(--navy);
  border-radius: 1.4cqw;
  font-size: 2.15cqw;
  line-height: 1.25;
}
.win-bar {
  display: flex;
  align-items: center;
  gap: 1.2cqw;
  padding: 1.5cqw 2.2cqw;
  background: #e4ecf5;
  border-radius: 1.4cqw 1.4cqw 0 0;
  font-weight: 650;
}
.win-bar i { width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: #9db0c6; }
.win-bar b { margin-left: 1.2cqw; font-weight: 650; }
.win-tools { display: flex; gap: 1.4cqw; padding: 1.8cqw 2.4cqw; }
.fake-btn {
  position: relative;
  padding: 0.9cqw 2.2cqw;
  border: 0.3cqw solid var(--navy);
  border-radius: 0.9cqw;
  font-weight: 650;
  background: var(--white);
}
.fake-btn.on { background: var(--turq); }
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5cqw 2.4cqw;
  border-top: 1px solid #e1eaf3;
}
.row:last-child { border-radius: 0 0 1.4cqw 1.4cqw; }
.chip { display: grid; }
.chip span {
  grid-area: 1 / 1;
  justify-self: end;
  padding: 0.5cqw 1.6cqw;
  border-radius: 99px;
  font-weight: 650;
  font-size: 1.9cqw;
  white-space: nowrap;
}
.chip .stopped { background: var(--amber-bg); color: var(--amber-ink); opacity: 0; }
.chip .running { background: var(--ok-bg); color: var(--ok-ink); }
.taskbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 9%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2.4cqw;
  padding-inline: 3cqw;
  color: #c8d6e6;
  font-size: 1.9cqw;
}
.tray { position: relative; width: 3.6cqw; height: 3.6cqw; }
.tray img { width: 100%; height: 100%; }
.tray i {
  position: absolute;
  right: -0.5cqw;
  bottom: -0.5cqw;
  width: 1.7cqw;
  height: 1.7cqw;
  border-radius: 50%;
  background: var(--ok-dot);
  border: 0.3cqw solid var(--navy);
}
.cursor {
  position: absolute;
  left: 74%;
  top: 46%;
  width: 4.2cqw;
  z-index: 2;
  pointer-events: none;
}
.cursor svg { width: 100%; }
.cursor b {
  position: absolute;
  left: 3.2cqw;
  top: 3.6cqw;
  background: var(--turq);
  color: var(--navy);
  font-size: 1.9cqw;
  font-weight: 700;
  padding: 0.4cqw 1.4cqw;
  border-radius: 99px;
  white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
  .scene .tray i { animation: dot-on 7s ease both; }
  .scene .cursor { animation: cursor-go 7s cubic-bezier(0.3, 0.1, 0.2, 1) both; }
  .scene .fake-btn.on { animation: press 7s ease both; }
  .scene .chip.fix .stopped { animation: chip-out 7s steps(1, end) both; }
  .scene .chip.fix .running { animation: chip-in 7s steps(1, end) both; }
}
@keyframes dot-on {
  0%, 9% { transform: scale(0); }
  13%, 100% { transform: scale(1); }
}
@keyframes cursor-go {
  0%, 12% { transform: translate(46cqw, -30cqw); opacity: 0; }
  16% { opacity: 1; }
  58%, 100% { transform: translate(0, 0); opacity: 1; }
}
@keyframes press {
  0%, 59% { transform: scale(1); }
  62% { transform: scale(0.94); }
  66%, 100% { transform: scale(1); }
}
@keyframes chip-out {
  0%, 65.9% { opacity: 1; }
  66%, 100% { opacity: 0; }
}
@keyframes chip-in {
  0%, 65.9% { opacity: 0; }
  66%, 100% { opacity: 1; }
}

/* ---------- Seções ---------- */
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section + .section,
.page-head + .section { padding-top: 0; }
.split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: start;
}
.split > h2 { position: sticky; top: 1.5rem; }
.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: clamp(1.8rem, 3.5vw, 2.8rem); }
.modes h3 { margin-bottom: 0.7rem; }
.modes p { margin: 0; color: var(--slate); }
.modes .m { padding-left: 1.3rem; border-left: 4px solid var(--turq); }

.index { margin: 0; }
.index > div {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 0.4rem clamp(1.5rem, 5vw, 4.5rem);
  padding-block: 1.35rem;
  border-top: 1px solid var(--line);
}
.index > div:last-child { border-bottom: 1px solid var(--line); }
.index dt { font-family: var(--display); font-weight: 650; font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.01em; }
.index dd { margin: 0; color: var(--slate); max-width: 58ch; }
.index.tight > div { grid-template-columns: minmax(0, 1fr); }

.more { margin-top: 1.6rem; }

/* ---------- Faixa escura (segurança) ---------- */
.band { background: var(--navy); color: var(--mist); padding-block: clamp(3rem, 7vw, 6rem); }
.band a { text-decoration-color: var(--turq); }
.band a:hover { text-decoration-color: var(--mist); }
.band h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
.band h2 { max-width: 20ch; }
.band .lead { color: #c8d6e6; max-width: 52ch; margin-top: 1.1rem; }
.diagram { margin-block: clamp(2rem, 5vw, 3.5rem); }
.diagram text { font-family: var(--text); fill: var(--mist); }
.diagram .small { font-size: 15px; fill: #a9bdd3; }
.diagram .name { font-size: 20px; font-weight: 650; }
.diagram .pipe { stroke: var(--turq); stroke-width: 8; stroke-linecap: round; fill: none; }
.diagram .node { fill: var(--navy-2); stroke: #6f88a8; stroke-width: 2; }
.diagram .node-srv { fill: var(--navy); stroke: #6f88a8; stroke-width: 2; stroke-dasharray: 7 6; }
.diagram .lock { fill: var(--turq); }
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.8rem clamp(1.5rem, 5vw, 4rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.facts li { max-width: 46ch; color: #c8d6e6; }
.facts strong { display: block; color: var(--white); font-family: var(--display); font-size: 1.25rem; font-weight: 650; line-height: 1.25; margin-bottom: 0.3rem; }

/* ---------- Páginas internas ---------- */
.page-head { padding-block: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-head h1 { font-size: clamp(2.3rem, 5vw, 4rem); max-width: 18ch; }
.page-head .lead { max-width: 52ch; }
.group { padding-block: clamp(1.5rem, 3vw, 2.5rem) 0; }
.group > h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 0.8rem; }
.legal { max-width: 70ch; }
.legal h2 { font-size: 1.6rem; margin: 2.2rem 0 0.7rem; }
.legal ul { padding-left: 1.2rem; margin: 0 0 1em; }
.legal li { margin-bottom: 0.4em; }

details { border-top: 1px solid var(--line); padding-block: 0.2rem; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 2.2rem 1rem 0;
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.25rem;
  line-height: 1.25;
  position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  position: absolute;
  right: 0.3rem;
  top: 1.35rem;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 3px solid var(--navy);
  border-bottom: 3px solid var(--navy);
  transform: rotate(45deg);
}
details[open] summary::after { transform: rotate(-135deg); top: 1.6rem; }
details > div { padding: 0 2.2rem 1.2rem 0; color: var(--slate); max-width: 64ch; }
details > div p:last-child { margin-bottom: 0; }

/* ---------- Convite final e rodapé ---------- */
.cta { background: var(--turq); color: var(--navy); padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.cta-grid { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; }
.cta h2 { max-width: 18ch; }
.cta p { margin: 0.6rem 0 0; max-width: 46ch; }
.cta .btn { background: var(--navy); color: var(--white); border-color: var(--navy); }
.cta .btn:hover { box-shadow: 4px 4px 0 var(--white); }
.cta a { text-decoration-color: var(--navy); }

.foot { padding-block: 2.5rem 3rem; font-size: 0.98rem; color: var(--slate); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem 3rem; align-items: start; }
.foot img { height: 36px; width: auto; margin-bottom: 0.9rem; }
.foot p { margin: 0 0 0.4rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; font-weight: 600; color: var(--navy); }
.foot nav a { text-decoration: none; }
.foot nav a:hover { text-decoration: underline; text-decoration-color: var(--turq); }

/* ---------- Telas menores ---------- */
@media (max-width: 860px) {
  .hero-grid,
  .split,
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .split > h2 { position: static; }
  .modes,
  .facts { grid-template-columns: minmax(0, 1fr); }
  .index > div { grid-template-columns: minmax(0, 1fr); }
  .lead { max-width: 40ch; }
  .scene { margin-right: 8px; margin-bottom: 8px; }
  .screen { box-shadow: 8px 8px 0 var(--turq); }
}
