:root {
  --void: #1A1424;
  --panel: #24202E;
  --alien: #9CA3AF;
  --cosmos: #7C3AED;
  --volt: #B6F000;
  --signal: #E4E4E7;
  --fog: #F4F4F5;
  --line: #3f3a4a;
  --font-ui: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-ui);
  background: var(--void);
  color: var(--signal);
  line-height: 1.5;
  min-height: 100vh;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--volt); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  background: var(--volt);
  color: var(--void);
  padding: 8px 12px;
}

/* —— Mark —— */
.mark-svg svg {
  width: 100%;
  height: 100%;
  color: var(--volt);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 36px;
  height: 36px;
  color: var(--volt);
  flex-shrink: 0;
}
.brand-mark.sm { width: 28px; height: 28px; }

.brand-word {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
}
.brand-word .b { color: var(--volt); }

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-volt {
  background: var(--volt);
  color: var(--void);
}
.btn-volt:hover { background: #c8ff2e; }
.btn-ghost {
  background: transparent;
  color: var(--signal);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--alien); }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* —— Top nav —— */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 0.3s ease, background 0.3s ease;
}
.top.is-scrolled {
  background: rgba(26, 20, 36, 0.55);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px 18px;
}
.nav a {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  line-height: 1.2;
  color: var(--alien);
  text-decoration: none;
}
.nav a:hover { color: var(--signal); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(26, 20, 36, 0.35);
}
.lang-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 34px;
  height: 28px;
  padding: 0 8px !important;
  border-radius: 5px;
  color: var(--alien) !important;
  opacity: 0.55;
  transition: opacity 0.2s ease, background 0.2s ease;
}
.lang-btn:hover {
  opacity: 0.9;
  color: var(--signal) !important;
}
.lang-btn.is-active {
  opacity: 1;
  background: rgba(182, 240, 0, 0.12);
  box-shadow: inset 0 0 0 1px rgba(182, 240, 0, 0.35);
}
.lang-flag {
  display: block;
  width: 18px;
  height: 12px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}
.lang-flag.us {
  background: linear-gradient(
    180deg,
    #b22234 0 7.7%,
    #fff 7.7% 15.4%,
    #b22234 15.4% 23.1%,
    #fff 23.1% 30.8%,
    #b22234 30.8% 38.5%,
    #fff 38.5% 46.2%,
    #b22234 46.2% 53.9%,
    #fff 53.9% 61.6%,
    #b22234 61.6% 69.3%,
    #fff 69.3% 77%,
    #b22234 77% 84.7%,
    #fff 84.7% 92.4%,
    #b22234 92.4% 100%
  );
  position: relative;
  overflow: hidden;
}
.lang-flag.us::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 45%;
  height: 53.8%;
  background: #3c3b6e;
}
.lang-flag.br {
  background: #009c3b;
  position: relative;
  overflow: hidden;
}
.lang-flag.br::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 9px;
  transform: translate(-50%, -50%) rotate(0deg);
  background: #ffdf00;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.lang-flag.br::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4.5px;
  height: 4.5px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #002776;
}

.lang-switch.mobile {
  width: 100%;
  margin: 8px 0;
  padding: 6px;
  gap: 6px;
  border-bottom: none;
}
.lang-switch.mobile .lang-btn {
  flex: 1;
  height: 40px;
  font-size: 0.85rem;
  border-bottom: none !important;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--signal);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 16px 16px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.mobile-nav a {
  color: var(--signal);
  padding: 12px 8px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mobile-nav:not([hidden]) { display: flex; }

@media (max-width: 820px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(100vh, 900px);
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  padding: clamp(48px, 10vh, 96px) clamp(16px, 4vw, 40px) clamp(64px, 12vh, 120px);
  overflow: hidden;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 75% 35%, rgba(124, 58, 237, 0.14), transparent 55%),
    radial-gradient(ellipse 40% 35% at 15% 70%, rgba(182, 240, 0, 0.04), transparent 50%);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(56px);
  opacity: 0.35;
}
.orb-a {
  width: min(48vw, 420px);
  height: min(48vw, 420px);
  background: rgba(124, 58, 237, 0.28);
  right: 5%;
  top: 15%;
}
.orb-b {
  width: min(36vw, 280px);
  height: min(36vw, 280px);
  background: rgba(182, 240, 0, 0.08);
  left: 8%;
  bottom: 10%;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 34rem;
}

.hero-brand {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--volt);
  margin: 0 0 20px;
}

.hero h1 {
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 16px;
  color: #F4F4F5;
}

.hero-lead {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--alien);
  margin: 0 0 28px;
  max-width: 48ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.hero-ring {
  position: relative;
  width: min(72vw, 360px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.hero-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(182, 240, 0, 0.12);
}

.hero-ring::after {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1px solid rgba(158, 163, 175, 0.1);
}

.hero-mark {
  width: 54%;
  color: var(--volt);
  filter: drop-shadow(0 0 28px rgba(182, 240, 0, 0.18));
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 40px;
    padding-bottom: 72px;
  }
  .hero-visual { order: -1; min-height: 220px; }
  .hero-ring { width: min(64vw, 240px); }
  .hero-brand { text-align: center; }
  .hero-copy { text-align: center; margin-inline: auto; }
  .hero-lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
}

/* —— Cosmos: real space + glass surfaces —— */
.cosmos {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background: #07060c;
}
.cosmos-photo {
  position: absolute;
  inset: -4%;
  background:
    url("../img/space.jpg") center / cover no-repeat;
  filter: saturate(0.85) brightness(0.55);
  transform: scale(1.02);
}
.cosmos-photo::after {
  /* cobre o rastro de satélite da foto */
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: 38%;
  height: 6%;
  background: radial-gradient(ellipse at center, rgba(12, 8, 22, 0.55), transparent 70%);
  pointer-events: none;
}
.cosmos-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 6, 12, 0.4) 0%, rgba(7, 6, 12, 0.55) 40%, rgba(7, 6, 12, 0.78) 100%),
    radial-gradient(ellipse 70% 50% at 70% 30%, rgba(124, 58, 237, 0.1), transparent 55%);
}

.stars {
  position: absolute;
  inset: 0;
}
.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  opacity: 0.75;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.55);
  animation: twinkle var(--dur, 4s) ease-in-out infinite alternate;
}
.star.is-bright {
  width: 2.5px;
  height: 2.5px;
  opacity: 0.95;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.85), 0 0 14px rgba(182, 240, 0, 0.25);
}
@keyframes twinkle {
  from { opacity: 0.45; }
  to { opacity: 1; }
}

/* Constelação de Órion + Betelgeuse — arco superior da órbita */
.orion {
  position: absolute;
  left: 50%;
  top: 6%;
  translate: -50% 0;
  width: min(22vw, 220px);
  height: auto;
  opacity: 1;
  z-index: 2;
  overflow: visible;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.35));
  pointer-events: none;
}
.orion-star {
  animation: orion-twinkle 3.5s ease-in-out infinite alternate;
}
.orion-star:nth-of-type(2n) { animation-delay: -1.2s; }
.orion-star:nth-of-type(3n) { animation-delay: -2.1s; }
.betelgeuse {
  fill: #fda4af;
  transform-origin: center;
  transform-box: fill-box;
  filter: drop-shadow(0 0 6px rgba(251, 113, 133, 0.95));
  animation: betelgeuse-pulse 3.2s ease-in-out infinite;
}
.betelgeuse-glow {
  animation: betelgeuse-glow 3.2s ease-in-out infinite;
}
.rigel {
  filter: drop-shadow(0 0 5px rgba(191, 219, 254, 0.95));
}
@keyframes orion-twinkle {
  from { opacity: 0.7; }
  to { opacity: 1; }
}
@keyframes betelgeuse-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}
@keyframes betelgeuse-glow {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.9; }
}

@media (max-width: 700px) {
  .orion {
    top: 8%;
    width: 36vw;
  }
}

.glass {
  background: rgba(255, 255, 255, 0.004);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Planets around sun */
.solar {
  position: absolute;
  right: -6%;
  top: 8%;
  width: min(56vw, 520px);
  aspect-ratio: 1;
  opacity: 0.7;
  z-index: 1;
}
.sun {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f5ffb0, var(--volt) 50%, #6b8600);
  box-shadow:
    0 0 36px rgba(182, 240, 0, 0.45),
    0 0 80px rgba(182, 240, 0, 0.2);
  animation: sun-pulse 5s ease-in-out infinite;
}
@keyframes sun-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.planet-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px dashed rgba(228, 228, 231, 0.28);
  border-radius: 50%;
  translate: -50% -50%;
}
.planet-orbit.o1 { width: 26%; aspect-ratio: 1; animation: spin-orbit 14s linear infinite; }
.planet-orbit.o2 { width: 40%; aspect-ratio: 1; animation: spin-orbit 22s linear infinite reverse; }
.planet-orbit.o3 { width: 54%; aspect-ratio: 1; animation: spin-orbit 32s linear infinite; }
.planet-orbit.o4 { width: 68%; aspect-ratio: 1; animation: spin-orbit 44s linear infinite reverse; }
.planet-orbit.o5 { width: 82%; aspect-ratio: 1; animation: spin-orbit 58s linear infinite; }
.planet-orbit.o6 { width: 96%; aspect-ratio: 1; animation: spin-orbit 74s linear infinite reverse; }
.planet-slot {
  position: absolute;
  inset: 0;
  rotate: var(--a, 0deg);
}
.planet {
  position: absolute;
  left: 50%;
  top: 0;
  translate: -50% -50%;
  border-radius: 50%;
}
.p1 { width: 8px; height: 8px; background: #a78bfa; box-shadow: 0 0 10px rgba(124,58,237,.7); }
.p2 { width: 13px; height: 13px; background: linear-gradient(135deg,#7dd3fc,#2563eb); box-shadow: 0 0 12px rgba(96,165,250,.45); }
.p2b { width: 6px; height: 6px; background: #93c5fd; box-shadow: 0 0 8px rgba(147,197,253,.5); }
.p3 { width: 10px; height: 10px; background: linear-gradient(135deg,#fdba74,#c2410c); box-shadow: 0 0 10px rgba(251,146,60,.4); }
.p3b { width: 5px; height: 5px; background: #fb923c; box-shadow: 0 0 7px rgba(251,146,60,.45); }
.p4 { width: 7px; height: 7px; background: #e4e4e7; box-shadow: 0 0 8px rgba(228,228,231,.35); }
.p5 { width: 9px; height: 9px; background: linear-gradient(135deg,#c4b5fd,#6d28d9); box-shadow: 0 0 10px rgba(124,58,237,.45); }
.p5b { width: 5px; height: 5px; background: #ddd6fe; box-shadow: 0 0 7px rgba(221,214,254,.4); }
.p6 { width: 6px; height: 6px; background: #86efac; box-shadow: 0 0 8px rgba(134,239,172,.45); }
@keyframes spin-orbit { to { transform: rotate(360deg); } }

/* UFO trail (drawn by craft) — no static ellipse */
.ufo-track-wrap {
  position: absolute;
  inset: 5% 2%;
  width: 96%;
  height: 90%;
  pointer-events: none;
  z-index: 2;
}
.ufo-trail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.75;
}
.ufo-flyer {
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 13px;
  will-change: transform;
  filter: drop-shadow(0 0 4px rgba(182, 240, 0, 0.45));
  z-index: 2;
}
.ufo-ship {
  display: block;
  width: 30px;
  height: 13px;
  overflow: visible;
  object-fit: contain;
  opacity: 0.95;
}

.shooting {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}
.shoot {
  position: absolute;
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), #fff 55%, var(--volt));
  opacity: 0;
  rotate: -26deg;
  animation: shoot-across 10s linear infinite;
  will-change: translate, opacity;
}
@keyframes shoot-across {
  0% {
    opacity: 0;
    translate: 0 0;
  }
  4% { opacity: 0.85; }
  40% { opacity: 0.35; }
  100% {
    opacity: 0;
    translate: 36vw 17.5vw;
  }
}

.page-home > .top,
.page-home > .mobile-nav,
.page-home > #main,
.page-home > .foot {
  position: relative;
  z-index: 1;
}

/* —— Reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* —— Sections —— */
.section {
  padding: clamp(64px, 10vh, 112px) clamp(16px, 4vw, 40px);
  max-width: 1100px;
  margin: 0 auto;
}

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(28px, 5vw, 44px);
}
.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}
.section-head p {
  margin: 0;
  color: var(--alien);
  font-size: 1.05rem;
  line-height: 1.55;
}

/* —— Flowchart (schematic horizontal — refs do usuário) —— */
.section-flow {
  max-width: 1100px;
}

.flowchart {
  border-radius: 16px;
  padding: clamp(16px, 2.5vw, 28px) clamp(12px, 2vw, 24px) 20px;
  overflow-x: auto;
}

.flow-schematic {
  position: relative;
  min-width: 860px;
}

.flow-rail {
  position: relative;
  height: 92px;
  margin-bottom: 10px;
}

.flow-wires,
.flow-loop-wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}

.flow-rocket {
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  z-index: 4;
  filter: drop-shadow(0 0 8px rgba(182, 240, 0, 0.65));
  will-change: transform;
  pointer-events: none;
}
.flow-rocket svg {
  display: block;
  width: 26px;
  height: 26px;
  transform: rotate(90deg);
}

.flow-glyphs {
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  position: relative;
  z-index: 2;
}
.flow-glyph-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-bottom: 2px;
}
.flow-logo {
  width: 24px;
  height: 24px;
  color: rgba(124, 58, 237, 0.38);
  opacity: 0.42;
  flex-shrink: 0;
  transition: color 0.25s ease, opacity 0.25s ease, filter 0.25s ease, transform 0.25s ease;
}
.flow-logo svg {
  display: block;
  width: 100%;
  height: 100%;
}
.flow-glyph-wrap.is-lit .flow-logo {
  color: #7C3AED;
  opacity: 1;
  transform: translateY(-1px);
  filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.75));
}
/* apagadas por padrão — só acendem com .is-lit (foguete) */
.flow-glyph-wrap.is-lit .flow-glyph {
  border-color: #B6F000;
  background: rgba(182, 240, 0, 0.55);
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(182, 240, 0, 0.55), 0 0 22px rgba(182, 240, 0, 0.45);
}
.flow-glyph {
  display: block;
  flex-shrink: 0;
  background: rgba(26, 20, 36, 0.55);
  border: 2.5px solid rgba(156, 163, 175, 0.35);
  opacity: 0.45;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}
.flow-glyph.circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.flow-glyph.circle.end {
  border-color: rgba(156, 163, 175, 0.35);
  background: rgba(26, 20, 36, 0.55);
}
.flow-glyph.rect {
  width: 44px;
  height: 28px;
  border-radius: 4px;
}
.flow-glyph.diamond {
  width: 28px;
  height: 28px;
  border-radius: 3px;
  transform: rotate(45deg);
}

.flow-labels {
  list-style: none;
  margin: 0;
  padding: 0 0 8px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  position: relative;
  z-index: 3;
  background: transparent;
}
.flow-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 0 4px;
  min-width: 0;
}
.flow-n {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--volt);
}
.flow-label h3 {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  color: var(--signal);
  font-weight: 600;
}
.flow-label p {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--alien);
  max-width: 18ch;
  position: relative;
  z-index: 3;
}

.flow-loop-zone {
  position: relative;
  height: 64px;
  margin-top: 6px;
  z-index: 1;
}
.flow-loop-box {
  position: absolute;
  left: 58%;
  top: 68%;
  translate: -30% -50%;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: #e9e0ff;
  background: rgba(36, 32, 46, 0.96);
  border: 1px solid rgba(167, 139, 250, 0.65);
  border-radius: 6px;
  padding: 6px 12px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

@media (max-width: 900px) {
  .flowchart {
    padding-bottom: 12px;
  }
}


/* —— Systems —— */
.section-systems {
  border-block: 1px solid rgba(255, 255, 255, 0.08);
}

.systems {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.system-item {
  position: relative;
  padding: 28px 22px 24px;
  border-radius: 14px;
  border-top: 2px solid var(--volt);
  transition: transform 0.3s ease, background 0.3s ease;
  overflow: hidden;
}
.system-item:hover {
  transform: translateY(-3px);
}

.system-glow {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0;
  top: -40px;
  right: -30px;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.system-item:hover .system-glow { opacity: 0.35; }
.system-item[data-product="orbit"] .system-glow { background: rgba(182, 240, 0, 0.3); }
.system-item[data-product="pulsar"] .system-glow { background: rgba(124, 58, 237, 0.35); }
.system-item[data-product="constellation"] .system-glow { background: rgba(182, 240, 0, 0.18); }

.system-logo {
  position: relative;
  width: 48px;
  height: 48px;
  margin: 0 0 16px;
  color: var(--volt);
  filter: drop-shadow(0 0 10px rgba(182, 240, 0, 0.25));
}
.system-logo img {
  display: block;
  width: 48px;
  height: 48px;
}
.system-item[data-product="pulsar"] .system-logo {
  filter: drop-shadow(0 0 10px rgba(182, 240, 0, 0.25));
}

.system-name {
  position: relative;
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--volt);
}

.system-tag {
  position: relative;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--alien);
}
.system-body {
  position: relative;
  margin: 0;
  color: var(--alien);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 42ch;
}

@media (max-width: 860px) {
  .systems { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .star, .ufo-trail, .planet-orbit, .sun, .shoot, .orion-star, .betelgeuse, .betelgeuse-glow,
  .back-top-ring {
    animation: none !important;
  }
}

/* —— About —— */
.section-about .section-head { margin-bottom: 28px; }

.about-panel {
  max-width: 860px;
  border-radius: 14px;
  padding: clamp(22px, 3vw, 32px);
}
.about-body {
  margin: 0 0 14px;
  color: var(--signal);
  font-size: 1.02rem;
  line-height: 1.65;
}
.about-body + .about-body {
  color: var(--alien);
  font-size: 0.98rem;
  margin-bottom: 22px;
}
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 0 24px;
}
.about-block {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
}
.about-block h3 {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--volt);
  font-weight: 600;
}
.about-block p {
  margin: 0;
  color: var(--alien);
  font-size: 0.92rem;
  line-height: 1.5;
}
.about-points {
  margin: 8px 0 24px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.about-points li {
  position: relative;
  padding-left: 18px;
  color: var(--alien);
  font-size: 0.95rem;
  line-height: 1.45;
}
.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--volt);
  box-shadow: 0 0 10px rgba(182, 240, 0, 0.45);
}
.about-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.btn-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  line-height: 0;
}
.btn-ico svg {
  display: block;
  width: 18px;
  height: 18px;
}

.login-form input {
  font: inherit;
  color: var(--signal);
  background: rgba(26, 20, 36, 0.55);
  border: 1px solid rgba(228, 228, 231, 0.12);
  border-radius: 8px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s ease;
}
.login-form input:focus {
  border-color: var(--volt);
}

.social-float {
  position: fixed;
  left: clamp(16px, 4vw, 40px);
  bottom: 18px;
  z-index: 80;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  transition: bottom 0.22s ease, left 0.22s ease;
  pointer-events: none;
}
.social-float-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  pointer-events: auto;
  border: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  line-height: 0;
}
.social-float-btn:hover {
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.34);
  filter: brightness(1.05);
}
.social-float-btn:active {
  transform: translateY(0);
}
.social-float-btn svg {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.social-float-btn.whatsapp {
  background: #25D366;
}
.social-float-btn.instagram {
  background: linear-gradient(45deg, #f58529, #dd2a7b 50%, #8134af 80%, #515bd4);
}

.back-top {
  position: fixed;
  right: 36px;
  bottom: 36px;
  z-index: 80;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--void);
  background: var(--volt);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease, bottom 0.22s ease;
  overflow: visible;
}
.back-top-rings {
  position: absolute;
  inset: -38px;
  display: grid;
  place-items: center;
  pointer-events: none;
  transform-style: preserve-3d;
  perspective: 240px;
}
.back-top-trail {
  position: absolute;
  width: 120px;
  height: 120px;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  pointer-events: none;
  z-index: 0;
}
.back-top-ring {
  position: absolute;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: none;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 220deg,
    rgba(182, 240, 0, 0.08) 250deg,
    rgba(182, 240, 0, 0.35) 295deg,
    rgba(182, 240, 0, 0.85) 330deg,
    #B6F000 350deg,
    transparent 360deg
  );
  -webkit-mask-image: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2.5px));
  mask-image: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2.5px));
  filter: drop-shadow(0 0 5px rgba(182, 240, 0, 0.45));
  transform: rotateX(76deg) rotateZ(0deg);
  animation: jupiter-ring-orbit 7s linear infinite;
  animation-play-state: paused;
  z-index: 1;
}
.back-top-ring.is-outer {
  width: 96px;
  height: 96px;
  background: conic-gradient(
    from 180deg,
    transparent 0deg 200deg,
    rgba(182, 240, 0, 0.05) 240deg,
    rgba(182, 240, 0, 0.28) 300deg,
    rgba(182, 240, 0, 0.7) 340deg,
    transparent 360deg
  );
  -webkit-mask-image: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1.5px));
  mask-image: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1.5px));
  filter: drop-shadow(0 0 4px rgba(182, 240, 0, 0.25));
  animation-duration: 11s;
}
.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.back-top.is-visible .back-top-ring {
  animation-play-state: running;
}
.back-top:hover {
  color: var(--void);
  text-decoration: none;
  filter: brightness(1.06);
}
.back-top:hover .back-top-ring {
  filter: drop-shadow(0 0 8px rgba(182, 240, 0, 0.65));
}
.back-top svg {
  display: block;
  position: relative;
  z-index: 2;
}

@keyframes jupiter-ring-orbit {
  from { transform: rotateX(76deg) rotateZ(0deg); }
  to { transform: rotateX(76deg) rotateZ(360deg); }
}

@media (max-width: 760px) {
  .social-float {
    bottom: 14px;
    gap: 8px;
  }
  .social-float-btn,
  .back-top {
    width: 40px;
    height: 40px;
  }
  .back-top {
    right: 28px;
    bottom: 28px;
  }
  .back-top-ring {
    width: 70px;
    height: 70px;
  }
  .back-top-ring.is-outer {
    width: 86px;
    height: 86px;
  }
}

@media (max-width: 700px) {
  .about-split {
    grid-template-columns: 1fr;
  }
}

/* —— Footer —— */
.foot {
  padding: 40px clamp(16px, 4vw, 40px) 56px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.foot-legal {
  text-align: right;
}
.foot-legal p,
.foot p {
  margin: 0;
  color: var(--alien);
  font-size: 0.85rem;
  line-height: 1.45;
}
.foot-legal p + p { margin-top: 2px; }

@media (max-width: 640px) {
  .foot-legal { text-align: left; width: 100%; }
}

/* —— Login —— */
.page-login {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(124, 58, 237, 0.2), transparent 55%),
    var(--void);
}

.login-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  position: relative;
}

.login-brand { margin-bottom: 28px; }

.login-panel {
  width: min(100%, 400px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 24px 24px;
}

.login-panel h1 {
  margin: 0 0 8px;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}
.login-lead {
  margin: 0 0 20px;
  color: var(--alien);
  font-size: 0.95rem;
}

.login-form {
  display: grid;
  gap: 14px;
}
.login-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--alien);
}

.login-flash {
  background: rgba(182, 240, 0, 0.1);
  border: 1px solid rgba(182, 240, 0, 0.35);
  color: var(--signal);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  margin: 0 0 16px;
}

.login-note {
  margin: 16px 0 12px;
  font-size: 0.8rem;
  color: var(--alien);
}
.login-back {
  font-size: 0.9rem;
}
.login-lang {
  position: absolute;
  top: 20px;
  right: 20px;
}
