.identity {
  width: 335px;
  height: 74px;
}

.official-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
}

.brand-name {
  display: flex;
  align-items: baseline;
  font-family: "Orbitron", "Arial Black", sans-serif;
  font-size: 43px;
  font-weight: 900;
  letter-spacing: -3px;
  white-space: nowrap;
}

.brand-name b,
.brand-name i {
  font: inherit;
  font-style: normal;
  text-shadow: 0 1px 0 #020711;
}

.brand-name b { color: #f5f8fb; }
.brand-name i {
  color: #ff1428;
  margin-left: .26em;
}

.brand-tagline {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 5px;
  font: 800 7px "Inter", Arial, sans-serif;
  letter-spacing: .1em;
  white-space: nowrap;
}

.brand-tagline b:nth-child(1) { color: #00d7ff; }
.brand-tagline b:nth-child(2) { color: #f3f8fc; }
.brand-tagline b:nth-child(3) { color: #ff3348; }

.brand-tagline b + b::before {
  content: "•";
  color: #f3f8fc;
  margin: 0 .5em;
}

.header-lockup {
  width: 325px;
  justify-content: flex-start;
}

.header-lockup .official-mascot {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.header-lockup .official-wordmark {
  width: 242px;
  height: 68px;
  object-fit: contain;
  object-position: left center;
  transform: translateY(4px);
}

.radar > span {
  display: none;
}

.contact-title {
  margin: 26px 0 24px;
  font-size: clamp(36px, 3.7vw, 50px);
  line-height: 1.05;
  letter-spacing: -.05em;
  white-space: nowrap;
}

.contact-title span {
  color: #f3f8fc;
}

.contact-title strong {
  color: #00d7ff;
}

.contact-title em {
  color: #ff3348;
  font-style: normal;
}

.hero h1 {
  font-size: clamp(46px, 4.4vw, 70px);
  white-space: nowrap;
}

.noc h2 {
  font-size: clamp(40px, 3.8vw, 54px);
}

.noc h2 strong {
  white-space: nowrap;
}

.architecture-map {
  overflow: hidden;
}

.architecture-map .data-flow:not(.down) {
  width: 100%;
  margin: 0;
  grid-template-columns: 80px repeat(6, 1fr);
  gap: 12px;
}

.architecture-map .data-flow:not(.down) i:first-child {
  grid-column: 2;
}

.architecture-map .data-flow.down {
  width: 76%;
  margin: 0 auto;
  grid-template-columns: 80px repeat(3, 1fr);
  gap: 12px;
}

.architecture-map .data-flow.down i:first-child {
  grid-column: 2;
}

.architecture-map .data-flow i::after {
  top: 0;
  bottom: 0;
  height: auto;
}

.intelligence {
  width: calc(100% - 160px);
  margin-left: auto;
  margin-right: auto;
  left: 40px;
}

.center-lockup {
  width: min(470px, 78%);
}

.center-lockup .official-mascot {
  width: 74px;
  height: 74px;
  object-fit: contain;
}

.center-lockup .official-wordmark {
  width: 330px;
  max-width: calc(100% - 84px);
  height: 92px;
  object-fit: contain;
  object-position: left center;
  transform: translateY(5px);
}

.center-lockup .brand-name { font-size: 58px; }
.center-lockup .brand-tagline { font-size: 9px; }

.footer-id {
  width: 260px;
}

.footer-lockup .official-mascot {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.footer-lockup .official-wordmark {
  width: 185px;
  height: 58px;
  object-fit: contain;
  object-position: left center;
  transform: translateY(3px);
}

.footer-lockup .brand-name { font-size: 32px; }
.footer-lockup .brand-tagline { font-size: 5px; margin-top: 3px; }

.footer-meta {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: #4e677b;
  font: inherit;
  white-space: nowrap;
}

.footer-meta #access-count {
  color: #baff28;
  font: inherit;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(186, 255, 40, .45);
}

@media (max-width: 680px) {
  .footer-meta { gap: 12px; }
}

@media (max-width: 1120px) {
  .intelligence {
    left: 0;
  }
}

@media (max-width: 680px) {
  .identity {
    width: 235px;
  }

  .header-lockup {
    width: 228px;
    gap: 6px;
  }

  .header-lockup .official-mascot {
    width: 46px;
    height: 46px;
  }

  .header-lockup .official-wordmark {
    width: 172px;
  }

  .header-lockup .brand-name {
    font-size: 31px;
  }

  .header-lockup .brand-tagline {
    font-size: 5px;
  }

  .contact-title {
    font-size: 42px;
    white-space: normal;
  }

  .hero h1 {
    font-size: 40px;
  }

  .noc h2 {
    font-size: 40px;
  }

  .noc h2 strong {
    white-space: normal;
  }

  .intelligence {
    width: 100%;
    left: 0;
  }

  .center-lockup {
    width: 88%;
    gap: 7px;
  }

  .center-lockup .official-mascot {
    width: 55px;
    height: 55px;
  }

  .center-lockup .official-wordmark {
    width: 205px;
  }

  .center-lockup .brand-name {
    font-size: 36px;
  }

  .center-lockup .brand-tagline {
    font-size: 5px;
  }
}

/* Alertas rotativos */
.rotating-alert {
  --alert-color: #00d7ff;
  transition: opacity .28s ease, transform .28s ease, border-color .28s ease;
}

.rotating-alert.is-changing {
  opacity: 0;
  transform: translateY(8px) scale(.97);
}

.rotating-alert[data-severity="critical"] { --alert-color: #ff3348; }
.rotating-alert[data-severity="warning"] { --alert-color: #ffc14d; }
.rotating-alert[data-severity="success"] { --alert-color: #28e5a4; }
.rotating-alert[data-severity="info"] { --alert-color: #00d7ff; }

.floating-alert.rotating-alert,
.floating-job.rotating-alert {
  border-left-color: var(--alert-color);
}

.rotating-alert > i,
.rotating-alert > span {
  color: var(--alert-color) !important;
}

.rotating-alert > i {
  background: color-mix(in srgb, var(--alert-color) 14%, transparent) !important;
}

.rotating-alert > span {
  max-width: 82px;
  text-align: right;
}

/* Zoom cósmico */
#site-shell {
  transform-origin: 50% var(--zoom-origin-y, 50vh);
  transition: transform .16s ease-out, opacity .16s ease-out, filter .16s ease-out, clip-path .16s ease-out;
  will-change: transform, opacity, clip-path;
}

#cosmic-planet {
  position: fixed;
  inset: 0;
  z-index: 70;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease-out;
}

.cosmic-hint {
  position: fixed;
  left: 50%;
  bottom: 10px;
  z-index: 71;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #d9fbff;
  font: 600 9px "JetBrains Mono", monospace;
  letter-spacing: .12em;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.ai-node-popup {
  position: fixed;
  display: none;
  z-index: 73;
  width: min(330px, calc(100vw - 32px));
  padding: 19px 20px 17px;
  border: 1px solid rgba(255, 51, 72, .72);
  background: linear-gradient(145deg, rgba(5, 20, 35, .97), rgba(2, 7, 17, .96));
  box-shadow: 0 0 0 1px rgba(0, 215, 255, .11), 0 0 34px rgba(255, 31, 62, .18), 0 22px 55px rgba(0, 0, 0, .55);
  color: #f3f8fc;
  font-family: "JetBrains Mono", monospace;
  border-radius: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(.97);
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}

.ai-node-popup.is-open { display: block; opacity: 1; visibility: visible; transform: translateY(0) scale(1); pointer-events: auto; }
.ai-node-popup small { color: #ff5268; font-size: 8px; letter-spacing: .09em; }
.ai-node-popup h3 { margin: 9px 28px 2px 0; color: #fff; font: 700 18px "Inter", sans-serif; }
.ai-node-popup p { margin: 0 0 14px; color: #7ddff0; font-size: 10px; }
.ai-node-popup dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.ai-node-popup dl div { padding: 9px; border: 1px solid rgba(0, 215, 255, .16); background: rgba(0, 215, 255, .035); }
.ai-node-popup dt { color: #67879a; font-size: 7px; text-transform: uppercase; }
.ai-node-popup dd { margin: 4px 0 0; color: #d9fbff; font-size: 9px; }
.ai-popup-close { position: absolute; top: 9px; right: 10px; border: 0; background: transparent; color: #8bb6c5; font-size: 20px; cursor: pointer; }
.ai-popup-close:hover { color: #fff; }

.cosmic-hint span {
  color: #6c899b;
  font-size: 7px;
  letter-spacing: .06em;
}

body.cosmic-zoom {
  overflow: hidden;
}

body.core-zoom {
  overflow: hidden;
}

body.cosmic-zoom #site-shell {
  transform: scale(var(--site-scale, 1));
  opacity: var(--site-opacity, 1);
  filter: brightness(var(--site-brightness, 1)) saturate(1.2);
  clip-path: circle(var(--clip-radius, 100vmax) at 50% var(--zoom-origin-y, 50vh));
  pointer-events: none;
}

body.cosmic-zoom #cosmic-planet {
  opacity: var(--planet-opacity, 0);
}

body.cosmic-deep #cosmic-planet {
  pointer-events: auto;
  cursor: grab;
}

body.cosmic-deep #site-shell {
  opacity: 0 !important;
  visibility: hidden;
}

body.cosmic-deep #cosmic-planet.is-dragging {
  cursor: grabbing;
}

body.cosmic-deep .cosmic-hint {
  opacity: 1;
  transform: translate(-50%, 0);
}

#planet-hud {
  position: fixed;
  inset: 0;
  z-index: 71;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}

body.cosmic-deep #planet-hud { opacity: 1; }

.planet-card {
  position: absolute;
  width: min(285px, 25vw);
  padding: 17px 20px;
  border: 1px solid rgba(0, 215, 255, .48);
  background: linear-gradient(135deg, rgba(4, 20, 34, .9), rgba(2, 8, 16, .75));
  box-shadow: inset 0 0 30px rgba(0, 215, 255, .04), 0 18px 45px rgba(0, 0, 0, .3);
  border-radius: 13px;
  font-family: "JetBrains Mono", monospace;
}

.planet-card small { display: block; color: #7ff5ff; font-size: 9px; letter-spacing: .1em; }
.planet-card b { display: inline-block; margin: 11px 15px 0 0; color: #00d7ff; font-size: 27px; }
.planet-card span { color: #67879a; font-size: 7px; }
.hud-ai { left: 2.5vw; top: 4vh; }
.hud-traffic { right: 2.5vw; top: 4vh; }
.hud-threat { left: 2.5vw; bottom: 5vh; border-color: rgba(255, 51, 72, .48); }
.hud-threat b { color: #ff3348; }
.hud-nodes { right: 2.5vw; bottom: 5vh; }

@media (max-width: 820px) {
  .planet-card { width: 43vw; padding: 11px 12px; }
  .planet-card b { font-size: 18px; }
  .planet-card span { display: none; }
}

/* Terceiro ambiente: núcleo de IA, acessado com zoom acima de 100% */
#ai-core-site {
  position: fixed;
  inset: 0;
  z-index: 74;
  display: grid;
  grid-template-rows: 76px minmax(0, 1fr) 172px;
  overflow: hidden;
  color: #f3f8fc;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 124, 255, .18), transparent 34%),
    linear-gradient(rgba(0, 215, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 215, 255, .025) 1px, transparent 1px),
    #020711;
  background-size: auto, 46px 46px, 46px 46px, auto;
  opacity: 0;
  transform: scale(.82);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  transform-origin: center center;
}

body.core-zoom #ai-core-site {
  opacity: var(--core-opacity, 0);
  transform: scale(var(--core-scale, .82));
}

body.core-zoom #site-shell {
  transform: scale(var(--core-site-scale, 1));
  opacity: var(--core-site-opacity, 1);
  filter: blur(var(--core-site-blur, 0));
  pointer-events: none;
}

body.core-deep #ai-core-site {
  pointer-events: auto;
}

.core-header,
.core-footer {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 4vw;
  border-bottom: 1px solid rgba(0, 215, 255, .2);
  background: rgba(2, 7, 17, .78);
  font-family: "JetBrains Mono", monospace;
}

.core-header > span {
  font: 900 25px "Orbitron", sans-serif;
  letter-spacing: -.08em;
}

.core-header > span b { color: #ff3348; }
.core-header small { color: #6c899b; font-size: 8px; letter-spacing: .12em; }
.core-header em { margin-left: auto; color: #28e5a4; font: 600 8px "JetBrains Mono", monospace; font-style: normal; }
.core-header em::before { content: "●"; margin-right: 8px; text-shadow: 0 0 12px #28e5a4; }

.core-layout {
  width: min(1420px, 94vw);
  margin: auto;
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(420px, 1.25fr) minmax(260px, .8fr);
  align-items: center;
  gap: 3vw;
}

.core-panel {
  padding: 28px;
  border: 1px solid rgba(25, 88, 124, .7);
  background: linear-gradient(145deg, rgba(8, 27, 45, .86), rgba(3, 10, 20, .94));
  box-shadow: 0 25px 70px rgba(0, 0, 0, .45);
}

.core-kicker { color: #00d7ff; font: 600 8px "JetBrains Mono", monospace; letter-spacing: .16em; }
.core-panel h2 { margin: 22px 0 18px; font-size: clamp(25px, 2.3vw, 34px); line-height: 1.08; letter-spacing: -.04em; }
.core-panel p { color: #8197aa; font-size: 12px; line-height: 1.75; }
.core-explanation {
  min-height: 112px;
  margin-top: 20px;
  padding: 14px 15px;
  border: 1px solid rgba(0, 215, 255, .25);
  border-radius: 10px;
  background: rgba(0, 215, 255, .045);
  box-shadow: inset 0 0 22px rgba(0, 215, 255, .035);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.core-explanation.is-changing { transform: translateY(2px); border-color: rgba(255, 51, 72, .5); }
.core-explanation small { display: block; color: #00d7ff; font: 600 7px "JetBrains Mono", monospace; letter-spacing: .12em; }
.core-explanation b { display: block; margin-top: 8px; color: #f3f8fc; font-size: 13px; }
.core-explanation p { margin: 6px 0 0; color: #7591a4; font-size: 9px; line-height: 1.55; }
.core-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 26px; }
.core-metrics span { color: #5f788c; font: 500 6px "JetBrains Mono", monospace; }
.core-metrics b { display: block; margin-bottom: 6px; color: #f3f8fc; font-size: 14px; }

.core-visual { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.core-ring { position: absolute; border: 1px solid rgba(0, 215, 255, .22); border-radius: 50%; animation: core-spin 18s linear infinite; }
.ring-one { inset: 8%; border-style: dashed; }
.ring-two { inset: 22%; animation-direction: reverse; animation-duration: 12s; }
.ring-three { inset: 35%; border-color: rgba(255, 51, 72, .35); animation-duration: 8s; }
.core-ring::before,
.core-ring::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #00d7ff; box-shadow: 0 0 18px #00d7ff; }
.core-ring::before { top: 12%; left: 17%; }
.core-ring::after { right: 5%; bottom: 33%; background: #ff3348; box-shadow: 0 0 18px #ff3348; }

.core-center {
  width: 150px;
  height: 150px;
  border: 1px solid #08738d;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  background: radial-gradient(circle, rgba(0, 215, 255, .19), rgba(3, 13, 24, .98) 68%);
  box-shadow: 0 0 70px rgba(0, 215, 255, .25), inset 0 0 28px rgba(0, 215, 255, .08);
}

.core-center small { color: #f3f8fc; font: 800 11px "Orbitron", sans-serif; }
.core-center b { color: #00d7ff; font: 900 48px "Orbitron", sans-serif; line-height: 1; }
.core-center span { margin-top: 6px; color: #28e5a4; font: 600 6px "JetBrains Mono", monospace; letter-spacing: .1em; }

.core-node { position: absolute; padding: 8px 10px; border: 1px solid #174965; border-radius: 7px; background: #061321; color: #8fdff0; font: 600 7px "JetBrains Mono", monospace; cursor: pointer; transition: color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.core-node:hover { color: #fff; border-color: #00d7ff; box-shadow: 0 0 22px rgba(0, 215, 255, .28); transform: translateY(-2px); }
.core-node.active { color: #fff; border-color: #00d7ff; background: #082438; box-shadow: 0 0 24px rgba(0, 215, 255, .36), inset 0 0 16px rgba(0, 215, 255, .09); }
.node-one { top: 17%; left: 13%; }.node-two { top: 18%; right: 10%; }.node-three { bottom: 17%; left: 8%; }.node-four { right: 8%; bottom: 18%; color: #ff8290; border-color: #763043; }

.core-feed { display: grid; gap: 8px; }
.core-feed > div { display: grid; grid-template-columns: 8px 1fr; gap: 11px; padding: 13px 0; border-top: 1px solid #142c40; }
.core-feed i { width: 6px; height: 6px; margin-top: 5px; border-radius: 50%; background: #00d7ff; box-shadow: 0 0 10px #00d7ff; }
.core-feed div:nth-child(4) i { background: #ff3348; box-shadow: 0 0 10px #ff3348; }
.core-feed span { color: #60798e; font-size: 9px; line-height: 1.5; }
.core-feed b { display: block; margin-bottom: 3px; color: #dcecf4; font-size: 10px; }

.core-footer {
  position: relative;
  display: block;
  width: calc(100% - 4.8vw);
  justify-self: center;
  margin: 0 0 18px;
  padding: 16px 24px 14px;
  border: 1px solid rgba(0, 215, 255, .58);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(4, 22, 38, .92), rgba(2, 9, 18, .96));
  box-shadow: inset 0 0 34px rgba(0, 215, 255, .035), 0 16px 50px rgba(0, 0, 0, .35);
  color: #668399;
  font-family: "JetBrains Mono", monospace;
}
.core-activity-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid rgba(0, 215, 255, .32); }
.core-activity-head > b { color: #5cecff; font-size: 10px; letter-spacing: .1em; }
.core-activity-head > b i { margin-right: 9px; color: #00d7ff; font-size: 18px; font-style: normal; }
.core-activity-head > span { font-size: 7px; letter-spacing: .1em; }
.core-activity-head em { color: #00d7ff; font-style: normal; }
.core-activity-head strong { color: #2de5a4; font-weight: 600; }
.core-activity-stream { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 12px; }
.core-activity-stream article { position: relative; display: grid; gap: 3px; padding: 0 22px 0 27px; border-right: 1px solid rgba(0, 215, 255, .24); }
.core-activity-stream article:last-child { border-right: 0; }
.core-activity-stream article > i { position: absolute; left: 3px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: #00d7ff; box-shadow: 0 0 14px #00d7ff; }
.core-activity-stream article > i.activity-yellow { background: #ffc42d; box-shadow: 0 0 14px #ffc42d; }
.core-activity-stream article > i.activity-green { background: #28e5a4; box-shadow: 0 0 14px #28e5a4; }
.core-activity-stream time { color: #77dff0; font-size: 8px; }
.core-activity-stream b { color: #eefaff; font-size: 9px; text-transform: uppercase; }
.core-activity-stream small { color: #607b91; font-size: 7px; }
.core-return-hint { position: absolute; right: 22px; bottom: 7px; color: #5b788c; font-size: 6px; letter-spacing: .06em; }

@keyframes core-spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  #ai-core-site { grid-template-rows: 68px minmax(0, 1fr) 220px; }
  .core-layout { grid-template-columns: 1fr; overflow-y: auto; padding: 30px 0; }
  .core-visual { min-height: 420px; order: -1; }
  .core-footer { margin: 0 12px 10px; padding: 12px; overflow: auto; }
  .core-activity-head > span { display: none; }
  .core-activity-stream { grid-template-columns: 1fr 1fr; gap: 12px 0; }
  .core-activity-stream article:nth-child(2) { border-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  #site-shell,
  #cosmic-planet,
  .cosmic-hint,
  .rotating-alert {
    transition: none;
  }
}
html {
  scrollbar-width: thin;
  scrollbar-color: #d9fbff #020b16;
}

html::-webkit-scrollbar { width: 13px; }
html::-webkit-scrollbar-track {
  background: linear-gradient(180deg, #020711, #031524 48%, #020711);
  border-left: 1px solid rgba(0, 215, 255, .12);
}
html::-webkit-scrollbar-thumb {
  min-height: 70px;
  border: 3px solid #020b16;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff 0 9%, #62f0ff 18%, #008fd1 50%, #62f0ff 82%, #fff 91% 100%);
  box-shadow: inset 0 0 8px rgba(255,255,255,.55), 0 0 12px rgba(0,215,255,.48);
}
html::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #fff 0 10%, #a5f8ff 20%, #00bfe9 50%, #a5f8ff 80%, #fff 90% 100%);
}
html::-webkit-scrollbar-button:single-button {
  height: 13px;
  background: #fff;
  border: 4px solid #020b16;
  border-radius: 50%;
}
