/* G2W Monitor — monitor.g2wseguranca.com.br
   Paleta e tipografia derivadas da identidade do aplicativo. */

:root {
  --ink: #00100e;
  --panel: #04211d;
  --panel-2: #062b25;
  --line: #0d3831;
  --mint: #92d684;
  --mint-dim: #5f9d55;
  --paper: #eae3d3;
  --muted: #6f8f87;
  --rec: #e2574c;

  --display: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Courier New", monospace;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --max: 68rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--mint); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--paper); }

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

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

.skip {
  position: fixed;
  left: -999px;
}
.skip:focus {
  left: var(--gutter);
  top: 0.5rem;
  z-index: 10;
  background: var(--mint);
  color: var(--ink);
  padding: 0.5rem 0.9rem;
  border-radius: 3px;
  font-weight: 600;
}

/* ---------- cabeçalho ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(0, 16, 14, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.top__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.7rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: var(--paper);
  text-decoration: none;
  margin-right: auto;
}
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.brand--foot { margin: 0 0 0.6rem; }

.nav {
  display: flex;
  gap: 1.35rem;
  font-size: 0.94rem;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.2rem 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--paper);
  border-bottom-color: var(--mint);
}

/* ---------- tipografia ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 7.5vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.12rem; letter-spacing: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint-dim);
  margin: 0 0 0.9rem;
}

.lede {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--muted);
  max-width: 46ch;
  text-wrap: pretty;
}

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

.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--line { border-top: 1px solid var(--line); }
.section__head { margin-bottom: 2.5rem; max-width: 52ch; }

/* ---------- herói ---------- */

.hero { padding-block: clamp(3rem, 8vw, 5.5rem) 0; }
.hero p.lede { margin: 1.4rem 0 2rem; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1.15rem;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--paper);
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.btn:hover {
  border-color: var(--mint-dim);
  background: var(--panel-2);
  color: var(--paper);
  transform: translateY(-1px);
}
.btn--primary {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--ink);
  font-weight: 600;
}
.btn--primary:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn small {
  font-family: var(--mono);
  font-size: 0.72rem;
  opacity: 0.7;
  font-weight: 400;
}

/* ---------- assinatura: mosaico + linha do tempo ---------- */

.viewer {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.viewer__bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--muted);
}
.rec {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--paper);
}
.rec::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rec);
  animation: pulse 2.4s ease-in-out infinite;
}
.viewer__clock { margin-left: auto; }

.grid-cams {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
}
.cam {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 30% 20%, rgba(146, 214, 132, 0.09), transparent 60%),
    linear-gradient(160deg, #072a24, #031a17);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
}
.cam__footage {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* material de vídeo real (não ilustração) — sem tratamento de câmera nesse
   quadro (nem chão em fuga nem pessoa animada), só a filmagem em si atrás
   do scanline e das legendas que já servem a todos os quadros. */
.cam--video .cam__floor,
.cam--video .cam__beam,
.cam--video .cam__walker { display: none; }

@media (prefers-reduced-motion: reduce) {
  .cam__footage { display: none; }
  .cam--video {
    background-image: var(--poster);
    background-size: cover;
    background-position: center;
  }
}

.cam__tag,
.cam__time {
  position: relative;
  z-index: 3;
  font-family: var(--mono);
  font-size: 0.66rem;
}
.cam__tag { color: var(--paper); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7); }
.cam__time { color: var(--mint-dim); font-variant-numeric: tabular-nums; }
.cam::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.022) 0 1px,
    transparent 1px 3px
  );
  pointer-events: none;
}

/* Plano de piso em fuga, como o campo de visão grande-angular de uma câmera
   de teto — é o que faz o quadro ler como um canto de ambiente, não uma
   caixa vazia. Segue o mesmo vocabulário plano/geométrico do ícone do app,
   sem tentar ser foto realista. */
.cam__floor {
  position: absolute;
  inset: 0;
  clip-path: polygon(0% 100%, 100% 100%, 66% 60%, 34% 60%);
  background: linear-gradient(180deg, rgba(146, 214, 132, 0.03), rgba(146, 214, 132, 0.13));
}

/* Claridade do quadro acompanha o mesmo ciclo de 24s do cursor da linha do
   tempo abaixo: mais claro quando o cursor cruza o meio do dia, mais escuro
   perto da meia-noite — a ilustração e a régua contam a mesma passagem de
   tempo. */
.cam__beam {
  position: absolute;
  inset: 0;
  background: radial-gradient(140% 90% at 50% 115%, rgba(146, 214, 132, 0.22), transparent 65%);
  opacity: 0.3;
  animation: daynight 24s ease-in-out infinite;
}

/* Uma pessoa atravessa o quadro em loop — cabeça, corpo e sombra no chão,
   com uma leve passada — em vez de uma forma abstrata flutuando. Cada
   quadro tem seu próprio ritmo (ver nth-child abaixo) para não parecer
   sincronizado, como feeds de câmeras realmente são. */
.cam__walker {
  position: absolute;
  bottom: 11%;
  left: -14%;
  width: 7.5%;
  aspect-ratio: 1 / 2.7;
  opacity: 0;
  animation: cross-frame 10s ease-in-out infinite;
}
.cam:nth-child(1) .cam__walker { animation-duration: 11s; animation-delay: 0.4s; }
.cam:nth-child(2) .cam__walker { animation-duration: 9s; animation-delay: 3.1s; }
.cam:nth-child(3) .cam__walker { animation-duration: 13s; animation-delay: 1.3s; }
.cam:nth-child(4) .cam__walker { animation-duration: 8s; animation-delay: 5.4s; }

.cam__walker__shadow {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: -8%;
  height: 16%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.6), transparent 75%);
}
.cam__walker__gait {
  position: absolute;
  inset: 0;
  animation: gait 0.55s ease-in-out infinite;
}
.cam__walker__body {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 14%;
  top: 30%;
  border-radius: 35% 35% 15% 15% / 25% 25% 10% 10%;
  background: linear-gradient(180deg, rgba(234, 227, 211, 0.55), rgba(234, 227, 211, 0.18));
}
.cam__walker__head {
  position: absolute;
  left: 20%;
  right: 20%;
  top: 4%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(234, 227, 211, 0.62);
}

@keyframes daynight {
  0%, 100% { opacity: 0.18; }
  50% { opacity: 0.85; }
}
@keyframes cross-frame {
  0% { transform: translateX(0); opacity: 0; }
  8% { opacity: 0.85; }
  50% { transform: translateX(760%); opacity: 0.85; }
  60% { opacity: 0; }
  100% { transform: translateX(760%); opacity: 0; }
}
@keyframes gait {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9%); }
}

/* linha do tempo — o elemento característico do produto */
.timeline {
  position: relative;
  padding: 0.85rem 0.9rem 1.1rem;
  border-top: 1px solid var(--line);
}
.timeline__hours {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.timeline__hours span { text-align: left; }
.timeline__hours span:nth-child(even) { visibility: hidden; }

.track {
  position: relative;
  height: 26px;
  border-radius: 3px;
  background: #041a17;
  border: 1px solid var(--line);
  overflow: hidden;
}
.track i {
  position: absolute;
  top: 0;
  bottom: 0;
  background: var(--mint-dim);
  opacity: 0.55;
}
.track i.hot { background: var(--mint); opacity: 0.85; }

.playhead {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: var(--paper);
  box-shadow: 0 0 10px rgba(234, 227, 211, 0.6);
  animation: sweep 24s linear infinite;
}

@keyframes sweep {
  from { left: 0%; }
  to { left: 100%; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .playhead { animation: none; left: 62%; }
  .rec::before { animation: none; }
  .btn:hover { transform: none; }
  .cam__beam { animation: none; opacity: 0.7; }
  .cam__walker { animation: none; opacity: 0; }
  .cam__walker__gait { animation: none; }
}

/* ---------- cartões ---------- */

/* base compartilhada dos blocos divididos por hairline */
.cards,
.rows,
.channels {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.cards { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.channels { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--panel);
  padding: 1.6rem 1.4rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- listas de download / passos ---------- */

.row {
  background: var(--panel);
  padding: 1.35rem 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.row > div { flex: 1 1 16rem; }
.row h3 { margin-bottom: 0.25rem; }
.row p { margin: 0; color: var(--muted); font-size: 0.92rem; }
code {
  font-family: var(--mono);
  font-size: 0.84rem;
  background: var(--ink);
  border: 1px solid var(--line);
  padding: 0.15rem 0.42rem;
  border-radius: 3px;
  color: var(--paper);
}

.steps { counter-reset: s; list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.steps li {
  position: relative;
  padding-left: 2.6rem;
  color: var(--muted);
}
.steps li::before {
  counter-increment: s;
  content: counter(s, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--mint-dim);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.05rem 0.35rem;
}
.steps strong { color: var(--paper); font-weight: 600; }

/* ---------- perguntas ---------- */

.qa { display: grid; gap: 0.6rem; }
.qa details {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  overflow: hidden;
}
.qa summary {
  cursor: pointer;
  padding: 1rem 1.2rem;
  font-weight: 600;
  list-style: none;
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--mono);
  color: var(--mint-dim);
}
.qa details[open] summary::after { content: "–"; }
.qa .answer { padding: 0 1.2rem 1.15rem; color: var(--muted); }
.qa .answer p { margin: 0 0 0.7rem; }
.qa .answer p:last-child { margin-bottom: 0; }

/* ---------- contato ---------- */


.channel {
  background: var(--panel);
  padding: 1.7rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--paper);
  transition: background 0.18s ease;
}
.channel:hover { background: var(--panel-2); color: var(--paper); }
.channel .label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint-dim);
}
.channel .value { font-family: var(--display); font-size: 1.32rem; font-weight: 700; }
.channel .note { font-size: 0.9rem; color: var(--muted); }

/* ---------- prosa (política de privacidade etc.) ---------- */

.prose { max-width: 62ch; }
.prose h2 {
  font-size: 1.35rem;
  margin: 2.6rem 0 0.9rem;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--paper);
  margin: 1.5rem 0 0.4rem;
}
.prose p { color: var(--muted); margin: 0.7rem 0; }
.prose ul { color: var(--muted); margin: 0.7rem 0; padding-left: 1.2rem; }
.prose li { margin: 0.4rem 0; }
.prose li::marker { color: var(--mint-dim); }
.prose strong { color: var(--paper); font-weight: 600; }
.prose .updated {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- rodapé ---------- */

.foot {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.foot__inner { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: flex-start; }
.foot__inner > * { flex: 1 1 15rem; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--paper); }
.foot ul { list-style: none; margin: 0.4rem 0 0; padding: 0; display: grid; gap: 0.35rem; }
.foot .legal { font-size: 0.82rem; opacity: 0.8; }

@media (max-width: 640px) {
  .top__inner { flex-wrap: wrap; gap: 0.75rem 1.2rem; }
  .brand { margin-right: 0; }
  .nav { width: 100%; gap: 1.1rem; }
  .timeline__hours { font-size: 0.64rem; }
  .timeline__hours span:nth-child(3n+2),
  .timeline__hours span:nth-child(3n+3) { visibility: hidden; }
}
