:root {
  --bg: #0b141c;
  --panel: #112029;
  --panel-2: #152833;
  --line: #223644;
  --text: #e8f1f6;
  --muted: #93a9b8;
  --cyan: #3ad4e8;
  --cyan-dim: rgba(58, 212, 232, 0.12);
  --green: #4ade80;
  --warn: #f5d56b;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--sans);
  -webkit-text-size-adjust: 100%;
}
img, svg { max-width: 100%; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #7be6f4; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

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

/* ---------- Cabeçalho e menu ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  background: rgba(11, 20, 28, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .bar { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-weight: 700; font-size: 21px; letter-spacing: 0.3px;
  color: var(--text); text-decoration: none;
}
.brand svg { width: 28px; height: 28px; color: var(--cyan); flex: none; }
.brand i { font-style: normal; color: var(--cyan); }

.menu ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.menu a {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 10px;
  color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500;
}
.menu a svg { width: 19px; height: 19px; flex: none; }
.menu a:hover { color: var(--text); background: var(--panel); }
.menu a[aria-current="page"] { color: var(--cyan); background: var(--cyan-dim); }

/* ---------- Botões ---------- */
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 10px;
  font: 600 16px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid var(--cyan); color: var(--cyan); background: transparent;
}
.btn:hover { background: var(--cyan-dim); color: var(--cyan); }
.btn.solid { background: var(--cyan); color: #04222a; }
.btn.solid:hover { background: #7be6f4; color: #04222a; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Texto ---------- */
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(34px, 5.4vw, 56px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 750; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.lead { font-size: 19px; color: var(--muted); max-width: 56ch; }
.muted { color: var(--muted); }
.section { padding: 64px 0; }
.section + .section { border-top: 1px solid var(--line); }
.page-head { padding: 56px 22px 8px; }
.page-head .lead { margin-top: 16px; }

/* ---------- Início: texto + painel de rede ---------- */
.hero { padding: 64px 0 56px; }
.hero .grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { max-width: 14ch; }
.hero .lead { margin-top: 20px; }

.rack {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px;
  display: flex; flex-direction: column; justify-content: center;
  min-height: 356px;
}
.rack-title {
  text-align: center; font: 700 16px/1 var(--mono); letter-spacing: 0.5px;
  color: var(--text); padding: 2px 4px 16px;
}
.rack-unit {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 14px; margin-bottom: 10px;
}
.rack-unit:last-of-type { margin-bottom: 0; }
.rack-name { font: 13px/1 var(--mono); color: var(--text); margin-bottom: 10px; display: flex; justify-content: space-between; }
.rack-name em { font-style: normal; color: var(--muted); }
.ports { display: grid; grid-template-columns: repeat(8, 1fr); gap: 7px; }
.port { display: block; }
.port i {
  display: block; width: 6px; height: 6px; border-radius: 50%;
  background: #2b4152; margin: 0 auto 5px;
}
.port b {
  display: block; height: 18px; border-radius: 3px;
  background: #0a1319; border: 1px solid #2b4152;
}
.port.on i { background: var(--green); box-shadow: 0 0 6px rgba(74, 222, 128, 0.7); }
.port.sig i { background: var(--cyan); box-shadow: 0 0 6px rgba(58, 212, 232, 0.7); animation: led 2.4s steps(1) infinite; }
@keyframes led { 0%, 70% { opacity: 1; } 71%, 100% { opacity: 0.25; } }
.rack-note { font-size: 13px; color: var(--muted); margin: 14px 4px 0; }

/* ---------- Início: blocos de texto ---------- */
.two-col { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; }
.two-col h2 { max-width: 14ch; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.plain-list li:first-child { padding-top: 0; }
.plain-list li:last-child { border-bottom: 0; }
.plain-list strong { display: block; font-size: 18px; margin-bottom: 2px; }
.plain-list span { color: var(--muted); }
.cta-band { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 36px; }
.cta-band h2 { max-width: 22ch; }
.cta-band p { color: var(--muted); max-width: 52ch; margin-top: 12px; }

/* ---------- Serviços: módulos de rack ---------- */
.units { display: grid; gap: 14px; padding-bottom: 72px; }
.unit {
  display: grid; grid-template-columns: 6px 0.8fr 1.2fr; gap: 28px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 24px 28px 24px 0; overflow: hidden;
}
.unit::before { content: ""; background: var(--green); box-shadow: 0 0 14px rgba(74, 222, 128, 0.55); }
.unit h3 { margin-bottom: 6px; }
.unit .what { color: var(--muted); margin: 0; }
.unit ul { margin: 0; padding-left: 20px; }
.unit li { margin: 0 0 6px; }
.unit li::marker { color: var(--cyan); }

/* ---------- Como funciona: sequência ---------- */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0 0 8px; }
.steps li { counter-increment: s; position: relative; padding: 0 0 36px 64px; }
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  font: 700 18px/1 var(--mono); color: var(--cyan);
  border: 1px solid var(--cyan); background: var(--bg);
}
.steps li::after { content: ""; position: absolute; left: 21px; top: 46px; bottom: 4px; width: 1px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { margin: 6px 0 6px; }
.steps p { color: var(--muted); margin: 0; max-width: 60ch; }

details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 650; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 400 24px/1 var(--mono); color: var(--cyan); }
details[open] summary::after { content: "\2212"; }
details p { margin: 10px 0 0; color: var(--muted); max-width: 64ch; }

/* ---------- Sobre ---------- */
.prose { max-width: 62ch; }
.principles { margin: 0; }
.principles dt { font-weight: 700; font-size: 18px; margin-top: 22px; }
.principles dt:first-child { margin-top: 0; }
.principles dd { margin: 4px 0 0; color: var(--muted); }
mark.ph {
  background: rgba(245, 213, 107, 0.16); color: var(--warn);
  padding: 1px 6px; border-radius: 4px; font-family: var(--mono); font-size: 0.92em;
}

/* ---------- Contato ---------- */
.contact { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; padding-bottom: 72px; }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts li:first-child { padding-top: 0; }
.facts small { display: block; color: var(--muted); font-size: 14px; }
.facts .val { font-size: 18px; font-weight: 600; }
form { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.field { margin-bottom: 18px; }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15px; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 9px;
  border: 1px solid #2f4658; background: #0b141c; color: var(--text);
  font: 16px/1.4 var(--sans);
}
input:hover, select:hover, textarea:hover { border-color: #46657c; }
textarea { min-height: 120px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-msg { margin-top: 16px; min-height: 1.4em; font-size: 15px; color: var(--warn); }
.form-hint { font-size: 14px; color: var(--muted); margin: 14px 0 0; }

/* ---------- Rodapé ---------- */
.foot { border-top: 1px solid var(--line); padding: 28px 0 36px; color: var(--muted); font-size: 15px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Celular ---------- */
@media (max-width: 860px) {
  .hero .grid, .two-col, .contact { grid-template-columns: 1fr; gap: 32px; }
  .unit { grid-template-columns: 6px 1fr; }
  .unit > div:last-child { grid-column: 2; }
  .unit { padding-right: 22px; gap: 10px 22px; }
}
@media (max-width: 720px) {
  body { padding-bottom: 78px; font-size: 16.5px; }
  .top .bar { height: 58px; }
  .top { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(11, 20, 28, 0.97); }
  .menu {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: rgba(11, 20, 28, 0.97); border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .menu ul { justify-content: space-around; gap: 0; }
  .menu li { flex: 1; }
  .menu a { flex-direction: column; gap: 3px; padding: 9px 2px 8px; font-size: 12px; border-radius: 0; text-align: center; }
  .menu a svg { width: 22px; height: 22px; }
  .hero { padding-top: 40px; }
  .rack { min-height: 378px; }
  .section { padding: 48px 0; }
  .row2 { grid-template-columns: 1fr; gap: 0; }
  form { padding: 20px; }
  .cta-band { padding: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .port.sig i { animation: none; }
}

/* ---------- Compartilhar ---------- */
.bar-end { display: flex; align-items: center; gap: 6px; }
.share {
  display: grid; place-items: center; width: 42px; height: 42px; flex: none;
  border-radius: 10px; border: 1px solid var(--line); background: transparent;
  color: var(--muted); cursor: pointer; padding: 0;
}
.share svg { width: 20px; height: 20px; }
.share:hover { color: var(--cyan); background: var(--cyan-dim); border-color: var(--cyan); }
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 60;
  background: var(--panel-2); color: var(--text); border: 1px solid var(--cyan);
  padding: 10px 16px; border-radius: 10px; font-size: 15px; max-width: calc(100% - 32px);
}

/* ---------- Dicas de segurança ---------- */
#matrix { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0.75; }
.matrix-page main, .matrix-page .foot { position: relative; z-index: 1; }
.tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 28px; padding-bottom: 40px; }
.tip {
  background: rgba(17, 32, 41, 0.9); border: 1px solid var(--line); border-radius: 12px; padding: 24px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.tip svg { width: 44px; height: 44px; color: var(--green); margin-bottom: 14px; filter: drop-shadow(0 0 8px rgba(74, 222, 128, 0.5)); }
.tip h3 { margin-bottom: 8px; }
.tip p { color: var(--muted); margin: 0; }
.tip:hover { border-color: var(--green); box-shadow: 0 0 22px rgba(74, 222, 128, 0.18); transform: translateY(-3px); }
.matrix-page .cta-band { background: rgba(17, 32, 41, 0.92); }
@media (max-width: 960px) { .tips { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1000px) and (min-width: 721px) { .menu a svg { display: none; } .menu a { padding: 9px 10px; } }
@media (max-width: 720px) { .tips { grid-template-columns: 1fr; } .menu a { font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { .tip { transition: none; } .tip:hover { transform: none; } }

/* ---------- Dicas: cartão que abre ---------- */
.tips { align-items: start; }
details.tip, details.tip:first-of-type {
  padding: 0; border: 1px solid var(--line); border-top: 1px solid var(--line);
}
details.tip[open] { border-color: var(--green); box-shadow: 0 0 22px rgba(74, 222, 128, 0.18); }
.tip summary { display: block; cursor: pointer; padding: 24px; font-weight: 400; font-size: inherit; border-radius: 12px; }
.tip summary::after { content: none; }
.tip summary .more { display: inline-block; margin-top: 14px; color: var(--cyan); font: 600 14px/1 var(--mono); }
.tip summary .more::after { content: " +"; }
details.tip[open] summary .more::after { content: " \2212"; }
.tip-more { padding: 0 24px 24px; border-top: 1px solid var(--line); margin-top: -2px; }
.tip-more h4 { margin: 18px 0 6px; font: 700 14px/1.2 var(--mono); color: var(--green); letter-spacing: 0.3px; }
.tip-more p { margin: 0; color: var(--text); max-width: none; }
.tip summary:focus-visible { outline-offset: -3px; }
details.tip[open] summary::after, details.tip summary::after { content: none; }

/* ---------- Ajustes: título da home, rack, redes, digitação ---------- */
.hero h1.grad, .page-head h1.grad {
  color: var(--cyan);
  background: linear-gradient(135deg, #3ad4e8 0%, #3ad4e8 38%, #ffffff 92%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rack-title { display: flex; align-items: center; justify-content: center; gap: 8px; }
.rack-title svg { width: 18px; height: 18px; color: var(--cyan); flex: none; }
.socials { display: flex; gap: 10px; margin-top: 8px; }
.social {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--line); color: var(--muted); opacity: 0.55; cursor: default;
}
.social svg { width: 22px; height: 22px; }
.social.on { opacity: 1; cursor: pointer; color: var(--cyan); border-color: var(--cyan); }
.social.on:hover { background: var(--cyan-dim); }
.matrix-page .page-head .lead.typing {
  font-family: var(--mono); color: var(--cyan); min-height: 3.3em; max-width: 56ch;
}
.lead .prompt { color: var(--cyan); }
.lead .cursor { color: var(--cyan); animation: cur 1s steps(1) infinite; }
@keyframes cur { 50% { opacity: 0; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .lead .cursor { animation: none; } }

/* ---------- Tablet: menu embaixo, como no celular ---------- */
@media (max-width: 960px) {
  body { padding-bottom: 78px; }
  .top { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(11, 20, 28, 0.97); }
  .menu {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: rgba(11, 20, 28, 0.97); border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .menu ul { justify-content: space-around; gap: 0; }
  .menu li { flex: 1; }
  .menu a { flex-direction: column; gap: 3px; padding: 9px 2px 8px; font-size: 13px; border-radius: 0; text-align: center; }
  .menu a svg { display: block; width: 22px; height: 22px; }
}
@media (min-width: 961px) and (max-width: 1100px) { .menu a { font-size: 14px; padding: 9px 8px; } }

/* ---------- Ajustes: LEDs do monitor, nome no rack, menu Dicas ---------- */
.port.hov { cursor: pointer; }
.port.hov i { transition: background .15s, box-shadow .15s; }
.port.hov:hover i, .port.hov.hot i { background: var(--green); box-shadow: 0 0 6px rgba(74, 222, 128, 0.7); }
.rack-title i { font-style: normal; color: var(--cyan); }
.menu a[href="dicas.html"]:hover, .menu a[href="dicas.html"]:active { background: var(--cyan-dim); color: var(--cyan); }
#leds-monitor { touch-action: pan-y; }

/* ---------- Aviso legal, privacidade, consentimento, "em breve" ---------- */
.foot .legal { flex-direction: column; gap: 8px; margin-top: 18px; font-size: 12px; line-height: 1.55; }
.foot .legal p:first-child { border-top: 1px solid var(--line); padding-top: 18px; }
.foot .legal p { margin: 0; max-width: 110ch; }
.foot .legal a { color: var(--muted); }
.foot .legal a:hover { color: var(--cyan); }
.policy h2 { font-size: 22px; letter-spacing: -0.01em; margin: 34px 0 10px; }
.policy ul { margin: 0 0 1em; padding-left: 20px; }
.policy li { margin-bottom: 8px; }
.policy li::marker { color: var(--cyan); }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 14px; }
.consent input[type="checkbox"] { width: 20px; height: 20px; padding: 0; margin: 2px 0 0; flex: none; accent-color: var(--cyan); cursor: pointer; }
.consent label { margin: 0; font-size: 13px; font-weight: 400; line-height: 1.5; color: #c4d3dd; cursor: pointer; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn:disabled:hover { background: var(--cyan); color: #04222a; }
.socials { align-items: flex-start; }
.soc { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.soon { font-size: 11px; color: var(--muted); letter-spacing: .3px; }
.soon[hidden] { display: none; }
.wrap.policy { max-width: 1080px; } .policy > * { max-width: 62ch; }

.page-head h1.grad { display: inline-block; }
.foot a.wa-mini { color: inherit; text-decoration: none; }
.foot a.wa-mini:hover { color: var(--cyan); }

/* Caixa dividida: planos recorrentes (bolinhas verdes) */
.plans { display: grid; grid-template-columns: 1fr 1fr; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.plans .half { padding: 24px 28px; }
.plans .half + .half { border-left: 1px solid var(--line); }
.plans h3 { margin-bottom: 10px; }
.plans ul { margin: 0; padding-left: 20px; }
.plans li { margin: 0 0 6px; }
.plans li::marker { color: var(--green); }
@media (max-width: 760px) {
  .plans { grid-template-columns: 1fr; }
  .plans .half + .half { border-left: 0; border-top: 1px solid var(--line); }
  .plans .half { padding: 22px; }
}

/* Caixa dividida: barra verde em cada metade e checks */
.plans .half { position: relative; padding-left: 34px; }
.plans .half::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--green); box-shadow: 0 0 14px rgba(74, 222, 128, 0.55); }
.plans ul { list-style: none; padding-left: 0; }
.plans li { position: relative; padding-left: 26px; }
.plans li::before {
  content: ""; position: absolute; left: 0; top: 0.32em; width: 16px; height: 16px; background: var(--green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (max-width: 760px) { .plans .half { padding-left: 30px; } }

/* Caixa de planos: bloco único, seções empilhadas, sem divisória */
.plans { grid-template-columns: 1fr; gap: 18px; padding: 0 0 0; }
.plans .half + .half { border-left: 0; border-top: 0; }
.plans .half { padding: 24px 28px 24px 34px; }
.plans { padding-bottom: 18px; }
.plans .half:first-child { margin-bottom: 0; }
@media (max-width: 760px) { .plans .half { padding: 22px 22px 22px 30px; } }

/* Caixa de planos: preço ao lado do título e linha fina entre as seções */
.plans { gap: 0; padding-bottom: 0; }
.plans .half-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 10px; }
.plans .half-head h3 { margin: 0; }
.plans .preco { color: var(--green); font-weight: 600; white-space: nowrap; }
.plans .half + .half { border-top: 0; }

/* Barra verde lateral só na caixa "Detecção de ameaças" */
.plans .half::before { background: transparent; box-shadow: none; }

/* Barra lateral de "Detecção de ameaças" em azul (ciano do site) */

.unit .pos { margin: 0 0 6px; font-size: 14px; color: var(--text); }

/* Menu com 7 itens: letra um pouco menor em celulares estreitos */
@media (max-width: 420px) { .menu a { font-size: 10px; } }
/* Menu com 7 itens: mantém cada item em uma linha */
@media (min-width: 1101px) { .menu a { padding: 9px 9px; white-space: nowrap; } .menu ul { gap: 2px; } }
@media (min-width: 721px) and (max-width: 960px) { .menu a { font-size: 12px; } }

/* Página de Planos: parágrafos de um lado, as duas caixas de preço empilhadas do outro */
.plans-layout { align-items: start; }
.plans-col { display: grid; gap: 18px; }
.plans-col-title { margin: 0 0 4px; }
.plans-col .half-head.only-price { justify-content: flex-end; }
