/* Aerosmart · Gêmeo Digital de Aeroportos. Usa o tema neon de cfs.css (--ciano, --lima, --vidro,
   .hud-c, .hud-tag, .num, .ouro, .botao--ouro). Classes próprias com o prefixo aer-. */

h3 { margin: 0; font-family: var(--titulo); font-weight: 700; letter-spacing: 0; line-height: 1.05; }
.aer-ext { margin-left: 8px; font-size: 0.95em; }

/* ---------- abertura ---------- */
.aer-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(900px, calc(100svh - 20px));
  padding: 150px var(--gutter) 0;
  display: grid; grid-template-rows: 1fr auto; gap: 44px;
}
.aer-hero__fundo { position: absolute; inset: 0; z-index: -1; }
.aer-hero__foto {
  position: absolute; right: 0; top: 64px; width: 70%; height: calc(100% - 64px);
  object-fit: cover; object-position: 62% 40%; opacity: 0.92;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.45) 18%, #000 42%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.45) 18%, #000 42%);
}
.aer-hero__varre {
  position: absolute; top: 64px; bottom: 0; left: 30%; width: 18%;
  background: linear-gradient(90deg, transparent, rgba(46, 230, 255, 0.12), transparent);
  mix-blend-mode: screen; animation: aerVarre 7s linear infinite;
}
@keyframes aerVarre { from { transform: translateX(-60%); } to { transform: translateX(430%); } }
.aer-hero__grade {
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(46, 230, 255, 0.05) 1px, transparent 1px) 0 0 / 100% 48px,
    linear-gradient(90deg, rgba(46, 230, 255, 0.05) 1px, transparent 1px) 0 0 / 48px 100%;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 58%);
  mask-image: linear-gradient(90deg, #000 0%, transparent 58%);
}
.aer-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3, 8, 13, 0.97) 0%, rgba(3, 8, 13, 0.84) 32%, rgba(3, 8, 13, 0.2) 60%, rgba(3, 8, 13, 0) 80%),
    linear-gradient(0deg, var(--bg) 0%, rgba(3, 8, 13, 0) 28%);
}
.aer-hero__texto { align-self: center; max-width: 680px; }
.aer-hero h1 {
  font-family: var(--titulo); font-size: clamp(2.9rem, 5.6vw, 5.4rem); line-height: 0.95;
  font-weight: 700; letter-spacing: -0.01em; color: #fff; text-wrap: balance;
  text-shadow: 0 0 30px rgba(46, 230, 255, 0.18);
}
.aer-hero__sub { margin-top: 24px; max-width: 34em; color: var(--ink-2); font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); }
.aer-hero__sub b { color: var(--ink); font-weight: 600; }
.aer-hero__dor {
  margin-top: 20px; max-width: 34em; padding: 14px 18px; color: var(--ink-2); font-size: 1rem; line-height: 1.55;
  border-left: 3px solid var(--lima); background: linear-gradient(90deg, rgba(182, 242, 58, 0.13), rgba(182, 242, 58, 0.01));
}
.aer-hero__dor b { color: var(--lima); font-weight: 600; }
.aer-hero__demo { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-family: var(--tec); font-size: 0.75rem; color: var(--ink-2); }
.aer-hero__faixa {
  list-style: none; margin: 0 calc(var(--gutter) * -1); padding: 22px var(--gutter);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
  border-top: 1px solid rgba(46, 230, 255, 0.25);
  background: linear-gradient(180deg, rgba(3, 8, 13, 0.4), rgba(3, 8, 13, 0.92));
}
.aer-hero__faixa b { display: block; font: 600 1.7rem/1.1 var(--titulo); color: var(--lima); text-shadow: 0 0 16px rgba(182, 242, 58, 0.45); }
.aer-hero__faixa span { font-family: var(--tec); font-size: 0.75rem; color: var(--ink-3); letter-spacing: 0.04em; }
html:not(.calmo) .aer-hero__texto > * { animation: aerEntra 800ms var(--ease-out) both; }
html:not(.calmo) .aer-hero__texto > :nth-child(2) { animation-delay: 60ms; }
html:not(.calmo) .aer-hero__texto > :nth-child(3) { animation-delay: 140ms; }
html:not(.calmo) .aer-hero__texto > :nth-child(4) { animation-delay: 220ms; }
html:not(.calmo) .aer-hero__texto > :nth-child(n+5) { animation-delay: 300ms; }
@keyframes aerEntra { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } }

/* ---------- 01 demonstração ---------- */
.aer-demo { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.aer-demo__tela { position: relative; margin: 0; background: #020a0f; border: 1px solid rgba(46, 230, 255, 0.35); border-radius: 4px; overflow: hidden; box-shadow: 0 0 40px rgba(46, 230, 255, 0.12), 0 40px 80px rgba(0, 0, 0, 0.5); }
.aer-demo__tela .cm-selo { z-index: 2; }
.aer-demo__video { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 704; object-fit: cover; }
.aer-demo__tela figcaption { padding: 12px 16px; font-family: var(--tec); font-size: 0.6875rem; color: var(--ink-3); border-top: 1px solid var(--linha); }
.aer-demo__lado { display: grid; gap: 14px; align-content: start; }
.aer-demo__bt { justify-self: start; font-size: 1.1875rem; padding-inline: 26px; }
.aer-demo__url { display: flex; align-items: center; gap: 10px; font-family: var(--tec); font-size: 0.8125rem; color: var(--ciano); }
.aer-demo__lado .cena__rot { margin: 10px 0 0; }
.aer-demo__lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.aer-demo__lista li { padding: 12px 14px; border: 1px solid var(--linha); border-left: 2px solid var(--ciano); border-radius: 0 4px 4px 0; background: rgba(3, 14, 20, 0.6); }
.aer-demo__lista b { display: block; font: 700 1.125rem/1.15 var(--titulo); color: #fff; }
.aer-demo__lista span { display: block; margin-top: 4px; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-2); }
.aer-prints { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.aer-print { margin: 0; background: var(--vidro); border: 1px solid var(--linha); border-radius: 4px; overflow: hidden; }
.aer-print a { display: block; aspect-ratio: 16 / 8; overflow: hidden; }
.aer-print img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
@media (hover: hover) { .aer-print a:hover img { transform: scale(1.03); } }
.aer-print figcaption { padding: 14px 18px 18px; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.5; }
.aer-print figcaption b { display: block; margin-bottom: 4px; font: 700 1.2rem/1.1 var(--titulo); color: #fff; }

/* ---------- 02 pátio em movimento ---------- */
.aer-patio { margin: 0; background: rgba(3, 12, 18, 0.88); border: 1px solid rgba(46, 230, 255, 0.35); border-radius: 4px; box-shadow: 0 0 40px rgba(46, 230, 255, 0.1), 0 40px 80px rgba(0, 0, 0, 0.45); overflow: hidden; }
.aer-patio__barra { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 16px; border-bottom: 1px solid var(--linha); font-family: var(--tec); font-size: 0.75rem; color: var(--ink-2); }
.aer-patio__barra > b { color: var(--lima); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.aer-patio__cab b { color: #39e58c; font-weight: 500; }
.aer-patio__hora { color: #fff; font-variant-numeric: tabular-nums; }
.aer-patio__ctrl { margin-left: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.aer-patio__ctrl button {
  min-height: 34px; padding: 6px 12px; font: 600 0.9375rem var(--titulo); letter-spacing: 0.02em; color: var(--ink);
  background: rgba(46, 230, 255, 0.06); border: 1px solid var(--linha-forte); border-radius: 2px; cursor: pointer; transition: border-color 160ms, background-color 160ms, color 160ms;
}
.aer-patio__ctrl button:hover { border-color: var(--ciano); color: #fff; }
.aer-patio__ctrl button[aria-pressed="true"] { color: #031006; background: var(--lima); border-color: var(--lima); }
.aer-patio__ctrl #aerPlay[aria-pressed="true"] { color: #031006; background: var(--st-ate); border-color: var(--st-ate); }
.aer-patio__corpo { display: grid; grid-template-columns: minmax(0, 1fr) 330px; }
.aer-patio__mapa { position: relative; min-width: 0; border-right: 1px solid var(--linha); background: radial-gradient(900px 500px at 50% 40%, rgba(46, 230, 255, 0.05), transparent 70%), #020a0f; }
.aer-patio__mapa svg { display: block; width: 100%; height: auto; }
.aer-patio__info:empty { display: none; }
.aer-patio__info {
  position: absolute; left: 14px; bottom: 14px; max-width: min(340px, calc(100% - 28px)); padding: 12px 14px;
  font-family: var(--tec); font-size: 0.75rem; line-height: 1.6; color: var(--ink-2);
  background: rgba(3, 14, 20, 0.92); border: 1px solid rgba(46, 230, 255, 0.4); border-radius: 4px; box-shadow: 0 0 24px rgba(46, 230, 255, 0.15);
}
.aer-patio__info b { display: block; margin-bottom: 2px; font: 700 1.125rem/1.2 var(--titulo); color: #fff; }
.aer-patio__info .ok { color: var(--lima); } .aer-patio__info .at { color: var(--st-ate); }

.aer-patio__lado { display: grid; align-content: start; font-family: var(--tec); font-size: 0.75rem; color: var(--ink-2); }
.aer-patio__lado > div { padding: 14px 16px; border-bottom: 1px solid var(--linha); }
.aer-patio__lado .cena__rot { margin-bottom: 8px; }
.aer-ocup__nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.aer-ocup__nums b { display: block; font: 700 1.6rem/1 var(--titulo); color: #fff; font-variant-numeric: tabular-nums; }
.aer-ocup__nums div:first-child b { color: var(--lima); text-shadow: 0 0 14px rgba(182, 242, 58, 0.4); }
.aer-ocup__nums span { display: block; margin-top: 4px; font-size: 0.6875rem; color: var(--ink-3); line-height: 1.3; }
.aer-ocup__barra { height: 6px; margin-top: 12px; border-radius: 3px; background: rgba(163, 174, 198, 0.12); overflow: hidden; }
.aer-ocup__barra i { display: block; height: 100%; width: 0; background: var(--lima); box-shadow: 0 0 10px var(--lima); transition: width 600ms var(--ease-out); }
.aer-met__linha { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; }
.aer-met__seta { width: 48px; height: 48px; color: var(--ciano); }
.aer-met__seta g { transform-origin: 20px 20px; transition: transform 1200ms var(--ease-out); }
.aer-met dl { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.aer-met dt { font-size: 0.6875rem; color: var(--ink-3); }
.aer-met dd { margin: 2px 0 0; color: #fff; font-variant-numeric: tabular-nums; }
.aer-met__raw { display: block; margin-top: 10px; font: 0.6875rem/1.4 var(--tec); color: var(--ink-3); overflow-wrap: anywhere; }
.aer-voos__lista { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 4px; min-height: 66px; }
.aer-voos__lista:last-child { margin-bottom: 0; }
.aer-voos__lista li { display: grid; grid-template-columns: 62px 38px 34px 1fr; gap: 8px; align-items: center; padding: 3px 0; border-bottom: 1px dashed rgba(120, 200, 220, 0.1); }
.aer-voos__lista li b { color: #fff; font-weight: 500; }
.aer-voos__lista li span:last-child { text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aer-voos__lista .s-ok { color: #39e58c; } .aer-voos__lista .s-at { color: var(--st-ate); } .aer-voos__lista .s-in { color: var(--ciano); } .aer-voos__lista .s-li { color: var(--lima); } .aer-voos__lista .s-ap { color: var(--ink-3); }
.aer-log ol { list-style: none; margin: 0; padding: 0; height: 96px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.aer-log li { display: flex; gap: 8px; padding: 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: aerLog 420ms var(--ease-out) both; }
.aer-log li time { color: var(--ink-3); flex: none; }
.aer-log li:nth-child(n+2) { opacity: 0.7; } .aer-log li:nth-child(n+4) { opacity: 0.4; }
@keyframes aerLog { from { opacity: 0; transform: translateY(-6px); } }
.aer-patio__leg { list-style: none; margin: 0; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 8px 20px; border-top: 1px solid var(--linha); font-family: var(--tec); font-size: 0.6875rem; color: var(--ink-2); }
.aer-patio__leg li { display: inline-flex; align-items: center; gap: 8px; }
.aer-l { display: inline-block; width: 14px; height: 4px; border-radius: 2px; }
.aer-l--voo { background: #2ee6ff; box-shadow: 0 0 8px #2ee6ff; }
.aer-l--solo { background: #ffb02e; box-shadow: 0 0 8px #ffb02e; }
.aer-l--ocup { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--lima); box-shadow: 0 0 8px var(--lima); }
.aer-l--res { width: 12px; height: 12px; border-radius: 50%; border: 2px dashed #ffb02e; }
.aer-l--livre { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(163, 174, 198, 0.5); }
.aer-l--cab { background: #39e58c; box-shadow: 0 0 8px #39e58c; }
.aer-l--fim { background: #ff3b55; box-shadow: 0 0 8px #ff3b55; }

/* desenho do pátio (SVG) */
#aerSvg .p-pista { fill: #0b1a24; stroke: rgba(46, 230, 255, 0.55); stroke-width: 1.2; }
#aerSvg .p-eixo { stroke: rgba(230, 246, 251, 0.55); stroke-width: 1.6; stroke-dasharray: 14 12; fill: none; }
#aerSvg .p-twy { fill: none; stroke: rgba(57, 229, 140, 0.55); stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; opacity: 0.22; }
#aerSvg .p-twy-eixo { fill: none; stroke: #39e58c; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 3px rgba(57, 229, 140, 0.8)); }
#aerSvg .p-patio { fill: rgba(46, 230, 255, 0.035); stroke: rgba(46, 230, 255, 0.18); stroke-width: 1; }
#aerSvg .p-term { fill: rgba(46, 230, 255, 0.08); stroke: rgba(46, 230, 255, 0.6); stroke-width: 1.2; filter: drop-shadow(0 0 6px rgba(46, 230, 255, 0.35)); }
#aerSvg .p-ponte { stroke: rgba(46, 230, 255, 0.55); stroke-width: 4; stroke-linecap: round; }
#aerSvg .p-guia { stroke: rgba(230, 246, 251, 0.18); stroke-width: 1; stroke-dasharray: 4 4; }
#aerSvg .p-rot { font: 500 11px var(--tec); fill: var(--ink-3); letter-spacing: 0.08em; }
#aerSvg .p-rot--cab { font: 600 16px var(--titulo); fill: #e6f6fb; letter-spacing: 0.06em; }
#aerSvg .p-luz { r: 1.8; fill: #f5f1d8; }
#aerSvg .p-luz--twy { fill: #39e58c; r: 1.4; }
#aerSvg .p-luz--cab { fill: #39e58c; r: 2.4; filter: drop-shadow(0 0 3px #39e58c); }
#aerSvg .p-luz--fim { fill: #ff3b55; r: 2.4; filter: drop-shadow(0 0 3px #ff3b55); }
#aerSvg .p-luzes { transition: opacity 400ms; }
#aerSvg.sem-luz .p-luzes { opacity: 0; }
#aerSvg .p-luzes--borda .p-luz { animation: aerPisca 3.2s ease-in-out infinite; }
#aerSvg .p-luzes--borda .p-luz:nth-child(3n) { animation-delay: -1.1s; }
#aerSvg .p-luzes--borda .p-luz:nth-child(3n+1) { animation-delay: -2.1s; }
@keyframes aerPisca { 50% { opacity: 0.45; } }
#aerSvg .box { cursor: pointer; }
#aerSvg .box circle { fill: rgba(3, 14, 20, 0.9); stroke: rgba(163, 174, 198, 0.45); stroke-width: 1.4; transition: stroke 300ms, filter 300ms; }
#aerSvg .box text { font: 600 12px var(--titulo); fill: var(--ink-2); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
#aerSvg .box.ocup circle { stroke: var(--lima); stroke-width: 2; filter: drop-shadow(0 0 5px rgba(182, 242, 58, 0.8)); }
#aerSvg .box.ocup text { fill: #fff; }
#aerSvg .box.res circle { stroke: #ffb02e; stroke-dasharray: 3 3; stroke-width: 1.8; }
#aerSvg .box.sel circle { stroke: #fff; stroke-width: 2.4; }
#aerSvg .box:focus { outline: none; }
#aerSvg .box:focus-visible circle { stroke: #fff; stroke-width: 3; }
#aerSvg .box circle.alvo { fill: transparent; stroke: none; pointer-events: all; filter: none; }
#aerSvg .anv path { stroke: rgba(0, 0, 0, 0.5); stroke-width: 0.6; transition: fill 400ms; }
#aerSvg .anv.voo path { fill: #2ee6ff; filter: drop-shadow(0 0 6px rgba(46, 230, 255, 0.9)); }
#aerSvg .anv.solo path { fill: #ffb02e; filter: drop-shadow(0 0 5px rgba(255, 176, 46, 0.8)); }
#aerSvg .anv.parado path { fill: #e6f6fb; filter: drop-shadow(0 0 4px rgba(230, 246, 251, 0.5)); }
#aerSvg .anv text { font: 500 10px var(--tec); fill: #ffb02e; }
#aerSvg .anv.voo text { fill: #2ee6ff; }
#aerSvg .anv.parado text { display: none; }

/* ---------- 03 recursos ---------- */
.aer-rec { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.aer-rec__card {
  display: grid; align-content: start; gap: 12px; padding: clamp(22px, 2.4vw, 32px);
  background: linear-gradient(180deg, rgba(8, 28, 38, 0.86), rgba(5, 20, 28, 0.7));
  border: 1px solid var(--borda-neon); border-radius: 4px; box-shadow: 0 0 24px rgba(46, 230, 255, 0.08);
}
.aer-rec__n { font-family: var(--tec); font-size: 0.75rem; color: var(--ciano); }
.aer-rec__card h3 { font-size: clamp(1.5rem, 2vw, 1.85rem); color: #fff; }
.aer-rec__card p { color: var(--ink-2); line-height: 1.6; }

/* ---------- 04 dados reais ---------- */
.aer-dados { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.aer-dados__cab h2 { font-size: clamp(2.1rem, 3.6vw, 3.3rem); }
.aer-dados__cab > p:last-child { margin-top: 18px; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.65; max-width: 34em; }
.aer-fontes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.aer-fontes li { display: grid; align-content: start; gap: 10px; padding: 22px 22px 20px; background: var(--vidro); border: 1px solid var(--linha); border-top: 2px solid var(--ciano); border-radius: 4px; }
.aer-fontes li:nth-child(2n) { border-top-color: var(--lima); }
.aer-fontes b { font: 700 1.6rem/1 var(--titulo); color: #fff; }
.aer-fontes span { color: var(--ink-2); line-height: 1.55; font-size: 0.975rem; }
.aer-fontes i { font-style: normal; font-family: var(--tec); font-size: 0.6875rem; color: var(--lima); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- 05 rastreamento ---------- */
.aer-nums { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.aer-nums li { padding: 22px 22px 20px; background: var(--vidro); border: 1px solid var(--linha); border-radius: 4px; }
.aer-nums b { display: block; font: 700 clamp(2.2rem, 3.6vw, 3.2rem)/1 var(--titulo); color: var(--lima); text-shadow: 0 0 22px rgba(182, 242, 58, 0.4); }
.aer-nums span { display: block; margin-top: 8px; font-family: var(--tec); font-size: 0.75rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.04em; }
.aer-ben { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.aer-ben li { display: grid; align-content: start; gap: 8px; padding: 18px 18px 20px; background: rgba(3, 14, 20, 0.6); border: 1px solid var(--linha); border-left: 2px solid var(--ciano); border-radius: 0 4px 4px 0; }
.aer-ben li:nth-child(even) { border-left-color: var(--lima); }
.aer-ben b { font: 700 1.2rem/1.12 var(--titulo); color: #fff; }
.aer-ben span { color: var(--ink-2); font-size: 0.9375rem; line-height: 1.5; }

/* ---------- 06 plataforma ---------- */
.aer-passos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: p; position: relative; }
.aer-passos li { position: relative; padding: 22px 20px 22px; background: var(--vidro); border: 1px solid var(--linha); border-top: 2px solid var(--ciano); border-radius: 4px; }
.aer-passos li:nth-child(even) { border-top-color: var(--lima); }
.aer-passos li:not(:last-child)::after {
  content: ""; position: absolute; right: -14px; top: 38px; width: 14px; height: 2px;
  background: linear-gradient(90deg, var(--ciano), var(--lima)); box-shadow: 0 0 8px var(--ciano);
}
.aer-passos__n { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-bottom: 12px; font: 700 1rem var(--titulo); color: #031006; background: var(--lima); border-radius: 2px; box-shadow: 0 0 16px rgba(182, 242, 58, 0.45); }
.aer-passos b { display: block; font: 700 1.35rem/1.1 var(--titulo); color: #fff; }
.aer-passos p { margin-top: 8px; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.5; }
.aer-onprem {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center;
  margin-top: 18px; padding: clamp(24px, 3.5vw, 44px);
  background: linear-gradient(180deg, rgba(8, 28, 38, 0.86), rgba(5, 20, 28, 0.7)); border: 1px solid var(--borda-neon); border-radius: 4px;
}
.aer-onprem h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); color: #fff; }
.aer-onprem p:not(.hud-tag) { margin-top: 14px; color: var(--ink-2); line-height: 1.65; }
.aer-onprem ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.aer-onprem li { position: relative; padding: 12px 14px 12px 30px; font: 600 1.0625rem/1.25 var(--titulo); color: var(--ink); background: rgba(3, 14, 20, 0.6); border: 1px solid var(--linha); border-radius: 3px; }
.aer-onprem li::before { content: ""; position: absolute; left: 12px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; background: var(--lima); box-shadow: 0 0 8px var(--lima); }

/* ---------- responsivo ---------- */
@media (max-width: 1100px) {
  .aer-patio__corpo { grid-template-columns: 1fr; }
  .aer-patio__mapa { border-right: 0; border-bottom: 1px solid var(--linha); }
  .aer-patio__lado { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aer-patio__lado > div:nth-child(odd) { border-right: 1px solid var(--linha); }
  .aer-ben { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aer-rec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aer-demo { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .aer-hero__foto { width: 100%; opacity: 0.45; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 95%); mask-image: linear-gradient(180deg, #000 30%, transparent 95%); }
  .aer-hero__faixa { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aer-prints { grid-template-columns: 1fr; }
  .aer-dados { grid-template-columns: 1fr; }
  .aer-passos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aer-passos li:nth-child(2)::after { display: none; }
  .aer-onprem { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .aer-hero { padding-top: 120px; }
  .aer-patio__lado { grid-template-columns: 1fr; }
  .aer-patio__lado > div:nth-child(odd) { border-right: 0; }
  .aer-patio__ctrl { margin-left: 0; width: 100%; }
  .aer-patio__ctrl button { flex: 1 1 auto; }
  .aer-rec, .aer-ben, .aer-fontes, .aer-nums, .aer-passos, .aer-onprem ul { grid-template-columns: 1fr; }
  .aer-passos li::after { display: none; }
  .aer-hero__faixa b { font-size: 1.4rem; }
}

/* ---------- 03 monitoramento ativo (rede.js): reaproveita a moldura .aer-patio ---------- */
.aer-rede__camadas button { font-size: 0.875rem; }
.aer-rede__camadas button[data-camada][aria-pressed="false"] { color: var(--ink-3); background: transparent; border-style: dashed; }
.aer-rede__camadas button[data-camada][aria-pressed="true"] { color: #031014; background: rgba(46, 230, 255, 0.85); border-color: var(--ciano); }
.aer-rede__nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.aer-rede__nums b { display: block; font: 700 1.6rem/1 var(--titulo); color: #fff; font-variant-numeric: tabular-nums; }
.aer-rede__nums div:nth-child(4) b { color: var(--lima); text-shadow: 0 0 14px rgba(182, 242, 58, 0.4); }
.aer-rede__nums span { display: block; margin-top: 4px; font-size: 0.6875rem; color: var(--ink-3); }
.aer-rede__vistos { margin: 12px 0 0; color: var(--ink-2); }
.aer-rede__vistos b { color: var(--ciano); font-weight: 500; }
.aer-rede__fontes ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.aer-rede__fontes li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; align-items: start; }
.aer-rede__fontes li b { display: block; color: #fff; font-weight: 500; }
.aer-rede__n { float: right; color: var(--ink-3); text-transform: none; letter-spacing: 0; }
.aer-rede__n b { color: var(--st-cri); font-weight: 500; }
.aer-rede__log ol { height: 150px; }
.aer-rede__log li { white-space: normal; }
.aer-rede__log li span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.r-ev--crit span { color: var(--st-cri); } .r-ev--aten span { color: var(--st-ate); } .r-ev--ok span { color: #39e58c; }
.aer-rede__info span { display: block; }
.aer-rede__regras { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.aer-rede__regras li { display: grid; align-content: start; gap: 6px; padding: 16px 18px 18px; background: var(--vidro); border: 1px solid var(--linha); border-radius: 4px; }
.aer-rede__regras b { font: 700 1.15rem/1.12 var(--titulo); color: #fff; }
.aer-rede__regras span { color: var(--ink-2); font-size: 0.9375rem; line-height: 1.5; }
.aer-rede__regras li:first-child { border-color: rgba(255, 77, 85, 0.45); }
.aer-rede__regras li:first-child b { color: #ff8a90; }

/* legenda */
.r-l { display: inline-block; width: 12px; height: 12px; border-radius: 2px; flex: none; margin-top: 2px; }
.r-l--tag { border-radius: 50%; border: 1.5px solid var(--lima); box-shadow: 0 0 8px rgba(182, 242, 58, 0.6); }
.r-l--cam { background: rgba(46, 230, 255, 0.2); border: 1px dashed var(--ciano); }
.r-l--adsb { background: #2ee6ff; box-shadow: 0 0 8px #2ee6ff; height: 4px; margin-top: 6px; }
.r-l--aer { background: #cfeefa; }
.r-l--vei { background: #ffb02e; }
.r-l--gse { background: #a26bff; }
.r-l--pes { border-radius: 50%; background: var(--lima); }
.r-l--cone { background: rgba(46, 230, 255, 0.18); border: 1px solid rgba(46, 230, 255, 0.5); }
.r-l--motor { border-radius: 50%; background: rgba(255, 77, 85, 0.25); border: 1px dashed #ff4d55; }
.r-l--crit { border-radius: 50%; border: 2px solid #ff4d55; box-shadow: 0 0 8px #ff4d55; }

/* desenho do pátio aproximado */
#redeSvg { font-family: var(--tec); }
#redeSvg .r-term { fill: #0c1c27; stroke: rgba(46, 230, 255, 0.35); }
#redeSvg .r-via { fill: #0a141b; }
#redeSvg .r-via-eixo { stroke: rgba(230, 246, 251, 0.25); stroke-width: 1; stroke-dasharray: 10 10; }
#redeSvg .r-txl { fill: #0b1a24; }
#redeSvg .r-txl-eixo { stroke: #e8c547; stroke-opacity: 0.7; stroke-width: 1.4; stroke-dasharray: 16 10; }
#redeSvg .r-cruz { fill: none; stroke: rgba(230, 246, 251, 0.35); stroke-dasharray: 3 3; }
#redeSvg .r-dep { fill: rgba(162, 107, 255, 0.05); stroke: rgba(162, 107, 255, 0.3); stroke-dasharray: 4 4; }
#redeSvg .r-env { fill: rgba(46, 230, 255, 0.02); stroke: rgba(255, 77, 85, 0.45); stroke-dasharray: 6 5; }
#redeSvg .r-guia { stroke: #e8c547; stroke-opacity: 0.55; stroke-width: 1.2; }
#redeSvg .r-parada { stroke: #e8c547; stroke-width: 2.2; }
#redeSvg .r-esa { fill: rgba(162, 107, 255, 0.06); stroke: rgba(162, 107, 255, 0.45); stroke-dasharray: 3 3; }
#redeSvg .r-rot { font-size: 10px; letter-spacing: 0.14em; fill: rgba(163, 174, 198, 0.65); }
#redeSvg .r-rot--via, #redeSvg .r-rot--txl { font-size: 8px; fill: rgba(163, 174, 198, 0.45); }
#redeSvg .r-rot--txl { fill: rgba(232, 197, 71, 0.6); }
#redeSvg .r-rot--box { font-size: 9px; fill: rgba(255, 138, 144, 0.75); }
#redeSvg .r-rot--esa { font-size: 8px; fill: rgba(162, 107, 255, 0.7); }
#redeSvg .r-rot--cam { font-size: 9px; fill: var(--ciano); letter-spacing: 0.08em; }
#redeSvg .r-cone { fill: rgba(46, 230, 255, 0.045); stroke: rgba(46, 230, 255, 0.28); stroke-dasharray: 2 4; }
#redeSvg .r-cam { fill: #031014; stroke: var(--ciano); stroke-width: 1.4; filter: drop-shadow(0 0 4px var(--ciano)); }
#redeSvg .r-zmotor { fill: rgba(255, 77, 85, 0.16); stroke: #ff4d55; stroke-dasharray: 4 3; animation: rPulso 1.2s ease-in-out infinite; }
@keyframes rPulso { 50% { fill-opacity: 0.45; } }

#redeSvg .r-ent { cursor: pointer; outline: none; }
#redeSvg .r-aviao { fill: #cfeefa; fill-opacity: 0.9; stroke: #2ee6ff; stroke-width: 1; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px rgba(46, 230, 255, 0.45)); }
#redeSvg .r-veic { fill: #ffb02e; stroke: #3a2600; stroke-width: 0.8; }
#redeSvg .r-veic--gse { fill: #a26bff; stroke: #1c0b38; }
#redeSvg .r-veic--cta { fill: #ff9f3a; }
#redeSvg .r-veic--oni { fill: #f2c94c; }
#redeSvg .r-veic--fm { fill: #e8c547; stroke: #000; }
#redeSvg .r-veic--vtr { fill: #ffffff; }
#redeSvg .r-carreta { fill: rgba(162, 107, 255, 0.55); stroke: #a26bff; stroke-width: 0.8; }
#redeSvg .r-cabine { fill: rgba(3, 16, 20, 0.6); }
#redeSvg .r-pessoa { fill: var(--lima); stroke: #0b1a05; stroke-width: 0.8; filter: drop-shadow(0 0 3px rgba(182, 242, 58, 0.8)); }
#redeSvg .r-ent--sem-colete .r-pessoa { fill: #d7dde8; filter: none; }
#redeSvg .r-fod { fill: #ff4d55; filter: drop-shadow(0 0 4px #ff4d55); }
#redeSvg .r-tag { fill: none; stroke: var(--lima); stroke-opacity: 0.5; stroke-width: 1; }
#redeSvg .r-ent--pessoa .r-tag { stroke-opacity: 0.35; }
#redeSvg .r-id { font-size: 8px; fill: rgba(230, 246, 251, 0.7); text-anchor: middle; pointer-events: none; }
#redeSvg .r-ent--aeronave .r-id { font-size: 10px; fill: #2ee6ff; }
#redeSvg .r-ent--pessoa .r-id { display: none; }
#redeSvg .r-ent--sel .r-id, #redeSvg .r-ent--pessoa.r-ent--sel .r-id { display: inline; fill: #fff; }
#redeSvg .r-ent--sel .r-tag { stroke: #fff; stroke-opacity: 1; stroke-width: 1.6; }
#redeSvg .r-ent:focus-visible .r-tag { stroke: #fff; stroke-opacity: 1; }
#redeSvg .r-ent--alerta .r-pessoa, #redeSvg .r-ent--alerta .r-veic { fill: #ff4d55; }

#redeSvg .r-det rect { fill: none; stroke: var(--ciano); stroke-width: 1; stroke-dasharray: 5 3; }
#redeSvg .r-det--pessoa rect { stroke: var(--lima); }
#redeSvg .r-det--veiculo rect { stroke: #ffb02e; }
#redeSvg .r-det--gse rect { stroke: #b893ff; }
#redeSvg .r-det--objeto rect { stroke: #ff4d55; }
#redeSvg .r-det__t { font-size: 6.5px; letter-spacing: 0.08em; fill: rgba(230, 246, 251, 0.8); }
#redeSvg .r-det--alerta rect { stroke: #ff4d55; stroke-width: 2; stroke-dasharray: none; }
#redeSvg .r-det--alerta .r-det__t { fill: #ff4d55; }
#redeSvg .r-alerta circle { fill: none; stroke: #ff4d55; stroke-width: 2; }
#redeSvg .r-alerta--aten circle { stroke: #ff9f3a; }
#redeSvg .r-alerta__onda { animation: rOnda 1.3s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes rOnda { from { transform: scale(1); opacity: 0.9; } to { transform: scale(2.6); opacity: 0; } }

/* camadas desligadas */
#redeSvg.sem-aeronave .r-cam-aer, #redeSvg.sem-veiculo .r-cam-vei, #redeSvg.sem-gse .r-cam-gse, #redeSvg.sem-pessoa .r-cam-pes,
#redeSvg.sem-cameras .r-cams, #redeSvg.sem-cameras .r-dets, #redeSvg.sem-zonas .r-zonas { display: none; }

@media (max-width: 1100px) { .aer-rede__regras { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .aer-rede__regras { grid-template-columns: 1fr; } .aer-rede__nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .aer-rede .aer-patio__mapa { overflow-x: auto; overscroll-behavior-x: contain; } .aer-rede .aer-patio__mapa svg { width: 760px; max-width: none; } }
