/* Conceito A2: globo de abertura. Tema escuro, cantos retos de 2px. */
:root {
  --bg: #030817;
  --ink: #e8ecf4;
  --ink-2: #a3aec6;
  --ink-3: #7985a3;
  --linha: rgba(163, 174, 198, 0.2);
  --linha-forte: rgba(163, 174, 198, 0.42);
  --azul: #1f4fe0;
  --ciano: #19ccfa;
  --raio: 2px;
  --gutter: clamp(16px, 4.4vw, 64px);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --fonte: "Archivo", system-ui, sans-serif;
  --mono: "Martian Mono", ui-monospace, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--fonte);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: var(--ciano); color: var(--bg); }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--ciano); outline-offset: 3px; border-radius: var(--raio); }
h1, p { margin: 0; }

/* ---------- Topo ---------- */
.topo {
  position: fixed; inset: 0 0 auto 0; z-index: 30; height: 68px;
  display: flex; align-items: center; gap: 40px; padding: 0 var(--gutter);
  background: linear-gradient(to bottom, rgba(3, 8, 23, 0.85), rgba(3, 8, 23, 0));
}
.topo__marca img { display: block; width: 190px; height: auto; }
.topo__nav { display: flex; gap: 28px; font-size: 0.9375rem; color: var(--ink-2); }
.topo__nav a { padding: 6px 0; transition: color 160ms var(--ease-out); }
.topo__cta { margin-left: auto; }

.botao {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px;
  padding: 0 22px; border-radius: var(--raio); font-weight: 600; font-size: 0.9688rem;
  transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), color 160ms var(--ease-out), transform 120ms var(--ease-out);
}
.botao:active { transform: scale(0.98); }
.botao--cheio { background: var(--ciano); color: var(--bg); border: 1px solid var(--ciano); }
.botao--linha { background: rgba(3, 8, 23, 0.35); color: var(--ink); border: 1px solid var(--linha-forte); }
@media (hover: hover) {
  .topo__nav a:hover { color: #fff; }
  .botao--cheio:hover { background: #8fe6fd; border-color: #8fe6fd; }
  .botao--linha:hover { border-color: var(--ciano); color: #fff; }
}

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; }
.palco { position: absolute; inset: 0; }
.palco__tela { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.palco__tela:active { cursor: grabbing; }
.palco__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gl .palco__poster { opacity: 0; transition: opacity 600ms; }
.no-gl .palco__tela { display: none; }
.hero::after { /* vinheta para o texto respirar */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(3, 8, 23, 0.82) 0%, rgba(3, 8, 23, 0.35) 38%, rgba(3, 8, 23, 0) 60%),
              linear-gradient(0deg, rgba(3, 8, 23, 0.7) 0%, rgba(3, 8, 23, 0) 22%);
}

.hero__texto {
  position: absolute; z-index: 5; left: var(--gutter); top: 50%; transform: translateY(-46%);
  width: min(600px, 44vw); pointer-events: none;
}
.hero__texto a { pointer-events: auto; }
.hero__selo {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.02em; color: var(--ink-2);
}
.ponto-vivo { width: 7px; height: 7px; border-radius: 50%; background: var(--ciano); box-shadow: 0 0 0 0 rgba(25, 204, 250, 0.6); animation: vivo 2.2s infinite; }
@keyframes vivo { 0% { box-shadow: 0 0 0 0 rgba(25, 204, 250, 0.55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(25, 204, 250, 0); } }
.hero__titulo {
  font-size: clamp(2.6rem, 5.2vw, 4.9rem); line-height: 0.98; letter-spacing: -0.035em;
  font-weight: 600; font-variation-settings: "wdth" 88;
}
.hero__sub { margin-top: 26px; max-width: 30em; color: var(--ink-2); font-size: clamp(1rem, 1.25vw, 1.1875rem); }
.hero__acoes { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Entrada: o texto chega enquanto o símbolo vira planeta */
.gl:not(.calmo) .hero__selo,
.gl:not(.calmo) .hero__titulo,
.gl:not(.calmo) .hero__sub,
.gl:not(.calmo) .hero__acoes,
.gl:not(.calmo) .hud,
.gl:not(.calmo) .legenda,
.gl:not(.calmo) .topo { animation: entra 900ms var(--ease-out) both; }
.gl:not(.calmo) .topo { animation-delay: 200ms; }
.gl:not(.calmo) .hero__selo { animation-delay: 500ms; }
.gl:not(.calmo) .hero__titulo { animation-delay: 620ms; }
.gl:not(.calmo) .hero__sub { animation-delay: 780ms; }
.gl:not(.calmo) .hero__acoes { animation-delay: 900ms; }
.gl:not(.calmo) .hud { animation-delay: 2200ms; }
.gl:not(.calmo) .legenda { animation-delay: 2500ms; }
@keyframes entra { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } }
.gl:not(.calmo) .hero__titulo { animation-name: entraTitulo; }
@keyframes entraTitulo { from { opacity: 0; transform: translateY(22px); filter: blur(6px); } }

/* ---------- Painel ao vivo ---------- */
.hud {
  position: absolute; z-index: 5; right: var(--gutter); top: 88px; width: 300px;
  font-family: var(--mono); font-size: 0.6875rem; color: var(--ink-2);
  border: 1px solid var(--linha); background: rgba(3, 8, 23, 0.55); border-radius: var(--raio);
  backdrop-filter: blur(6px);
}
.hud__topo { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--linha); }
.hud__selo { color: var(--ciano); border: 1px solid rgba(25, 204, 250, 0.45); padding: 2px 6px; border-radius: var(--raio); }
.hud__relogio { font-variant-numeric: tabular-nums; }
.hud__nums { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-bottom: 1px solid var(--linha); }
.hud__nums div { padding: 10px 12px; }
.hud__nums div + div { border-left: 1px solid var(--linha); }
.hud__nums dt { font-size: 0.5625rem; color: var(--ink-3); white-space: nowrap; }
.hud__nums dd { margin: 4px 0 0; font-size: 1.125rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.hud__log { list-style: none; margin: 0; padding: 8px 12px 10px; height: 106px; overflow: hidden; }
.hud__log li { display: flex; gap: 10px; padding: 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: linha 420ms var(--ease-out) both; }
.hud__log li time { color: var(--ink-3); flex: none; }
.hud__log li b { color: var(--ink); font-weight: 500; }
.hud__log li:nth-child(n+2) { opacity: 0.72; }
.hud__log li:nth-child(n+4) { opacity: 0.42; }
@keyframes linha { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Legenda ---------- */
.legenda {
  position: absolute; z-index: 5; left: var(--gutter); bottom: 28px; margin: 0; padding: 0; list-style: none;
  display: flex; gap: 22px; font-family: var(--mono); font-size: 0.6875rem; color: var(--ink-3);
}
.legenda li { display: flex; align-items: center; gap: 8px; }
.arraste {
  position: absolute; z-index: 4; left: 65%; bottom: 30px; transform: translateX(-50%);
  font-family: var(--mono); font-size: 0.625rem; color: var(--ink-3); pointer-events: none;
  opacity: 0; transition: opacity 600ms;
}
.arraste.ver { opacity: 0.8; }
.no-gl .arraste, .no-gl .legenda, .no-gl .hud, .no-gl .alvo { display: none; }

/* ---------- Voo em destaque ---------- */
.alvo {
  position: absolute; z-index: 4; left: 0; top: 0; pointer-events: none; color: var(--ciano);
  opacity: 0; transition: opacity 400ms var(--ease-out); will-change: transform;
}
.alvo.ver { opacity: 1; }
.alvo__mira { position: absolute; left: -20px; top: -20px; animation: mira 2.4s var(--ease-out) infinite; }
@keyframes mira { 0% { transform: scale(1.5); opacity: 0; } 25% { transform: scale(1); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
.alvo__guia { position: absolute; left: 14px; top: -42px; }
.alvo__info {
  position: absolute; left: 76px; top: -62px; display: grid; gap: 1px;
  font-family: var(--mono); font-size: 0.625rem; color: var(--ink-2); white-space: nowrap;
  padding: 7px 10px; background: rgba(3, 8, 23, 0.72); border-left: 2px solid var(--ciano);
}
.alvo__info b { color: #fff; font-weight: 500; font-size: 0.75rem; }
.alvo__sat { color: var(--ciano); }
.alvo--navio { color: #ffb547; } .alvo--navio .alvo__info { border-color: #ffb547; }
.alvo--caminhao { color: #5cf2a0; } .alvo--caminhao .alvo__info { border-color: #5cf2a0; }
.alvo--esq .alvo__guia { left: auto; right: 14px; transform: scaleX(-1); }
.alvo--esq .alvo__info { left: auto; right: 76px; border-left: 0; border-right: 2px solid var(--ciano); text-align: right; }

/* ---------- Celular ---------- */
@media (max-width: 1100px) {
  .topo__nav { display: none; }
  .hud { width: 280px; }
  .legenda { display: none; }
}
@media (max-width: 760px) {
  .topo { height: 60px; }
  .topo__marca img { width: 150px; }
  .hero { min-height: 720px; }
  .hero::after { background: linear-gradient(180deg, rgba(3, 8, 23, 0.9) 0%, rgba(3, 8, 23, 0.55) 42%, rgba(3, 8, 23, 0) 58%); }
  .hero__texto { top: 96px; transform: none; width: auto; right: var(--gutter); }
  .hero__selo { margin-bottom: 16px; }
  .hero__titulo { font-size: clamp(2.2rem, 10vw, 2.9rem); }
  .hero__sub { margin-top: 16px; font-size: 1rem; }
  .hero__acoes { margin-top: 22px; }
  .hero__acoes .botao { flex: 1 1 auto; }
  .hud { left: var(--gutter); right: var(--gutter); width: auto; top: auto; bottom: 16px; }
  .hud__log { display: none; }
  .hud__nums { border-bottom: 0; }
  .arraste { display: none; }
  .alvo__info { left: 52px; top: -54px; }
  .alvo__guia { width: 40px; left: 12px; top: -34px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}
