/* Security Plus · página inicial (v2). Mantém a identidade: azul-marinho, azul-petróleo e amarelo, com o escudo da câmera.
   Conceito: a central de monitoramento. Moldura de visor nos cartões, identificação de câmera, tipografia de painel.
   Fontes (licença OFL em /fonts/LICENSE-*.txt): Rajdhani (títulos, a mesma do painel) e Barlow (texto). */

@font-face { font-family: "Rajdhani"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/rajdhani-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Rajdhani"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/rajdhani-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/barlow-latin-700-normal.woff2") format("woff2"); }

:root {
  --navy: #000b3d;
  --petrol: #062c3d;
  --deep: #031e2c;
  --yellow: #ffd200;
  --yellow-hi: #ffdf4d;
  --paper: #f3f6f7;
  --paper-2: #e6ecee;
  --ink: #0b1d2a;
  --muted-dark: #50667a;
  --muted-light: #b4c6d2;
  --line-dark: rgb(255 255 255 / 0.14);
  --line-light: #cfd9de;
  --display: "Rajdhani", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  --sans: "Barlow", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--petrol);
  color: #fff;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.container { width: min(72rem, 92%); margin-inline: auto; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1; letter-spacing: 0.005em; text-transform: uppercase; }
h3 { font-size: 1.55rem; line-height: 1.05; letter-spacing: 0.01em; }

/* visor: quatro cantos em L, desenhados com gradientes sobre um pseudo-elemento */
.vf { position: relative; }
.vf::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  --c: var(--yellow);
  background:
    linear-gradient(var(--c), var(--c)) top left / 18px 3px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 3px 18px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 18px 3px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 3px 18px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 18px 3px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 3px 18px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 18px 3px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 3px 18px no-repeat;
}
.vf-dark::before { --c: var(--navy); }

/* ---------- botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 2.9rem;
  padding: 0 1.4rem;
  border: 2px solid transparent;
  border-radius: 6px;
  font: 700 1rem/1 var(--sans);
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn-lg { min-height: 3.4rem; padding: 0 1.9rem; font-size: 1.05rem; }
.btn-primary { background: var(--yellow); color: var(--navy); border-color: var(--yellow); }
.btn-primary:hover { background: var(--yellow-hi); border-color: var(--yellow-hi); transform: translateY(-1px); }
.btn-outline { border-color: rgb(255 255 255 / 0.4); color: #fff; }
.btn-outline:hover { border-color: var(--yellow); color: var(--yellow); }
.btn-dark { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-dark:hover { background: #00155f; border-color: #00155f; transform: translateY(-1px); }

/* ---------- topo ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(0 11 61 / 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-dark);
}
.nav { min-height: 4.6rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; font: 700 1.3rem/0.95 var(--display); letter-spacing: 0.08em; }
.brand img { width: 3rem; height: 3rem; object-fit: contain; background: #e6e6e7; border-radius: 10px; padding: 4px; }
.menu { display: flex; gap: 1.6rem; margin-inline: auto; }
.menu a { font-size: 0.95rem; font-weight: 600; color: var(--muted-light); transition: color 0.2s; }
.menu a:hover { color: var(--yellow); }
.nav-actions { display: flex; gap: 0.6rem; }
.nav-actions .btn { min-height: 2.6rem; padding-inline: 1.1rem; font-size: 0.95rem; }

/* ---------- abertura ---------- */
.hero {
  position: relative;
  overflow: clip;
  padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(3rem, 7vw, 6rem);
  background:
    radial-gradient(60% 70% at 85% 20%, rgb(0 60 120 / 0.55), transparent 70%),
    linear-gradient(180deg, var(--navy), var(--petrol));
}
.hero::after {
  /* grade discreta de visor */
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgb(255 255 255 / 0.035) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, #000, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-text { display: grid; gap: 1.5rem; justify-items: start; }
.status { display: inline-flex; align-items: center; gap: 0.6rem; font: 600 0.8rem/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-light); }
.dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 0 4px rgb(255 77 77 / 0.25); animation: blink 1.6s steps(2, jump-none) infinite; flex: none; }
@keyframes blink { 50% { opacity: 0.25; } }
h1 { font-size: clamp(3.3rem, 8.4vw, 7rem); line-height: 0.9; letter-spacing: 0.005em; text-transform: uppercase; }
h1 span { color: var(--yellow); }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--muted-light); max-width: 33rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* monitor da abertura */
.monitor { padding: 12px; background: #020b14; border: 1px solid var(--line-dark); display: grid; gap: 10px; box-shadow: 0 40px 70px -40px rgb(0 0 0 / 0.8); }
.feed { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: #0a1c3a; }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.hud { position: absolute; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 0.55rem 0.8rem; font: 600 0.72rem/1 var(--mono); letter-spacing: 0.08em; color: #e6f0f7; z-index: 1; text-shadow: 0 1px 2px rgb(0 0 0 / 0.8); }
.hud-top { top: 0; background: linear-gradient(180deg, rgb(0 0 0 / 0.55), transparent); }
.hud-bottom { bottom: 0; background: linear-gradient(0deg, rgb(0 0 0 / 0.55), transparent); color: var(--yellow); }
.rec { display: inline-flex; align-items: center; gap: 0.4rem; color: #ff6b6b; }
.rec i { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #ff3b3b; animation: blink 1.6s steps(2, jump-none) infinite; }
.detect { position: absolute; left: 50%; bottom: 14%; transform: translateX(-50%); padding: 0.28rem 0.7rem; background: var(--yellow); color: var(--navy); font: 700 0.72rem/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; z-index: 1; white-space: nowrap; }
.minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(160deg, #10263a, #071521); overflow: hidden; }
.mini::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, rgb(255 255 255 / 0.04) 0 1px, transparent 1px 4px); }
.mini span { position: absolute; left: 0.5rem; bottom: 0.4rem; z-index: 1; font: 600 0.62rem/1 var(--mono); letter-spacing: 0.06em; color: #b8cad6; }

/* ---------- como funciona ---------- */
.about { background: var(--paper); color: var(--ink); padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-title { display: grid; gap: 1rem; max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-title p { font-size: 1.15rem; color: var(--muted-dark); max-width: 38rem; }
.section-title--light p { color: var(--muted-light); }
.about h2 { color: var(--navy); }
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: none; }
.flow li { position: relative; display: grid; gap: 0.6rem; align-content: start; padding: 0 1.5rem 0 0; }
.flow-n { display: grid; place-items: center; width: 3rem; height: 3rem; background: var(--navy); color: var(--yellow); font: 700 1.6rem/1 var(--display); border-radius: 4px; position: relative; z-index: 1; }
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 3rem; right: 0; top: 1.5rem; border-top: 3px dotted #9db0bb; }
.flow h3 { color: var(--navy); margin-top: 0.6rem; }
.flow p { color: var(--muted-dark); font-size: 1rem; }

/* ---------- recursos ---------- */
.features { background: var(--petrol); padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.cams { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.cam { display: grid; align-content: start; gap: 0.7rem; padding: 1.5rem 1.5rem 1.7rem; min-height: 15rem; background: linear-gradient(160deg, #0a2433, #051a27); border: 1px solid var(--line-dark); transition: border-color 0.2s, transform 0.2s; }
.cam::before { --c: rgb(255 210 0 / 0.55); transition: opacity 0.2s; }
.cam:hover { border-color: rgb(255 210 0 / 0.5); transform: translateY(-2px); }
.cam-id { display: flex; align-items: center; gap: 0.5rem; font: 600 0.74rem/1 var(--mono); letter-spacing: 0.1em; color: var(--muted-light); }
.cam-id i { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #ff4d4d; }
.cam h3 { color: var(--yellow); margin-top: 0.8rem; font-size: 1.8rem; }
.cam p:not(.cam-id) { color: var(--muted-light); font-size: 1rem; }
.cam--cta { align-content: end; background: var(--yellow); border-color: var(--yellow); }
.cam--cta::before { --c: var(--navy); }
.cam--cta h3 { color: var(--navy); margin: 0; }
.cam--cta .cam-id { color: var(--navy); }
.cam--cta .cam-id i { background: var(--navy); }
.cam--cta p:not(.cam-id) { color: #3a3300; }
.cam--cta:hover { border-color: var(--yellow-hi); }
.cam--cta .go { margin-top: 0.4rem; font-weight: 700; color: var(--navy); }

/* ---------- automação ---------- */
.automation { background: var(--paper); color: var(--ink); padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.automation h2 { color: var(--navy); }
.spc-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.spc-photo { padding: clamp(1.2rem, 3vw, 2.2rem); background: #fff; border: 1px solid var(--line-light); }
.spc-photo img { width: 100%; height: auto; }
.spc-copy { display: grid; gap: 1.1rem; justify-items: start; }
.spc-soon { padding: 0.25rem 0.75rem; background: var(--navy); color: var(--yellow); font: 700 0.78rem/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.spc-copy h3 { font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--navy); text-transform: uppercase; }
.spc-copy > p { color: var(--muted-dark); }
.spc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; width: 100%; padding-block: 0.4rem; }
.spc-stats div { display: grid; gap: 0.2rem; align-content: start; }
.spc-stats dt { font: 700 clamp(2.6rem, 5vw, 3.8rem)/0.9 var(--display); color: var(--navy); }
.spc-stats dd { font-size: 0.9rem; line-height: 1.35; color: var(--muted-dark); }
.spc-note { font-size: 0.98rem; }
.auto-items { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; margin-top: clamp(2.5rem, 6vw, 4rem); }
.auto-items li { display: grid; gap: 0.4rem; align-content: start; padding-top: 1.1rem; border-top: 4px solid var(--navy); }
.auto-items svg { width: 2rem; height: 2rem; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 0.4rem; }
.auto-items h3 { color: var(--navy); }
.auto-items p { color: var(--muted-dark); font-size: 1rem; }
.auto-cta { margin-top: clamp(2rem, 5vw, 3rem); }

/* ---------- planos ---------- */
.plans { background: var(--navy); padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.plans-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; align-items: stretch; }
.plan-card { position: relative; display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 1rem; padding: 2rem 1.7rem 1.8rem; background: #04124f; border: 1px solid var(--line-dark); }
.plan-card h3 { font-size: 1.9rem; text-transform: uppercase; letter-spacing: 0.04em; }
.price { font: 700 clamp(2.8rem, 4.4vw, 3.6rem)/0.95 var(--display); color: #fff; }
.price small { font: 500 1rem/1 var(--sans); color: var(--muted-light); letter-spacing: 0; }
.plan-desc { color: var(--muted-light); font-size: 1rem; min-height: 3.2em; }
.plan-card ul { display: grid; gap: 0.55rem; align-content: start; padding-block: 0.6rem; border-top: 1px solid var(--line-dark); }
.plan-card li { position: relative; padding-left: 1.2rem; font-size: 1rem; line-height: 1.4; }
.plan-card li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 0.5rem; height: 0.5rem; background: var(--yellow); }
.plan-card .btn { width: 100%; }
.plan-card.featured { background: #061a6b; border: 2px solid var(--yellow); box-shadow: 0 30px 60px -30px rgb(255 210 0 / 0.35); }
.popular { position: absolute; top: -0.9rem; left: 1.7rem; padding: 0.25rem 0.8rem; background: var(--yellow); color: var(--navy); font: 700 0.78rem/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.plans-note { max-width: 46rem; margin: 2rem auto 0; text-align: center; font-size: 0.92rem; line-height: 1.5; color: var(--muted-light); }

/* ---------- chamada e contato ---------- */
.cta-band { background: var(--yellow); color: var(--navy); padding-block: clamp(3rem, 7vw, 5rem); }
.cta-content { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta-band h2 { font-size: clamp(2.6rem, 6vw, 5rem); line-height: 0.92; }
.cta-band p { font-size: 1.2rem; font-weight: 500; margin-top: 0.6rem; }
.contact { background: var(--petrol); padding-block: clamp(3.5rem, 8vw, 6rem); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.contact-card { display: grid; gap: 1.4rem; justify-items: start; }
.contact-sub { color: var(--muted-light); font-size: 1.15rem; margin-top: -0.6rem; }
.contact-list { display: grid; gap: 0.9rem; }
.contact-list dt { font: 600 0.78rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--yellow); margin-bottom: 0.2rem; }
.contact-list dd { font-size: 1.25rem; font-weight: 500; }
.contact-logo { justify-self: center; width: min(100%, 26rem); padding: 1.5rem; background: #e6e6e7; border-radius: 10px; }
.contact-logo img { width: 100%; height: auto; }

footer { background: var(--deep); border-top: 1px solid var(--line-dark); padding-block: 1.6rem; font-size: 0.92rem; color: var(--muted-light); }
.footer-content { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem 2rem; }
.footer-content a { text-decoration: underline; text-underline-offset: 3px; }
.footer-content a:hover { color: var(--yellow); }

.floating-whatsapp { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 60; display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--yellow); box-shadow: 0 10px 26px rgb(0 0 0 / 0.4); transition: transform 0.2s; }
.floating-whatsapp:hover { transform: scale(1.06); }
.floating-whatsapp svg { width: 1.6rem; height: 1.6rem; fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot, .rec i { animation: none; }
  .btn, .cam, .floating-whatsapp { transition: none; }
}

/* ---------- telas menores ---------- */
@media (max-width: 62rem) {
  .menu { display: none; }
  .nav-actions { margin-left: auto; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1rem; }
  .flow li:nth-child(2)::after { display: none; }
  .cams { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auto-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans-grid { grid-template-columns: minmax(0, 1fr); max-width: 30rem; margin-inline: auto; }
}
@media (max-width: 50rem) {
  .hero-grid, .spc-split, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow li::after { display: none; }
  .cams { grid-template-columns: minmax(0, 1fr); }
  .cam { min-height: 0; }
  .brand { font-size: 1.1rem; }
  .nav-actions .btn-outline { padding-inline: 0.9rem; }
  .spc-stats { grid-template-columns: minmax(0, 1fr); }
  .cta-content .btn { width: 100%; }
}
