:root {
  --footer-black: #040306;
  --footer-cream: #fff3d7;
  --footer-muted: #b9a98d;
  --footer-green: #00ff99;
  --footer-pink: #ff2bd6;
  --footer-max-width: 1160px;
  --footer-glow-green:
    0 0 12px rgba(0, 255, 153, 0.75),
    0 0 34px rgba(0, 255, 153, 0.25);
}

.site-footer,
.site-footer * {
  box-sizing: border-box;
}

.site-footer {
  position: relative;
  z-index: 2;
  padding: 38px 0 28px;
  border-top: 2px solid rgba(0, 255, 153, 0.25);
  color: var(--footer-muted);
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 43, 214, 0.10), transparent 26%),
    radial-gradient(circle at 85% 100%, rgba(0, 255, 153, 0.08), transparent 28%),
    rgba(4, 3, 6, 0.96);
  font-family:
    "Courier New",
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
  font-size: 0.8125rem;
}

.footer-container {
  width: min(calc(100% - 28px), var(--footer-max-width));
  margin-inline: auto;
}

.footer-main,
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--footer-green);
  font-weight: 900;
  letter-spacing: -0.06em;
  text-decoration: none;
  text-shadow: var(--footer-glow-green);
}

.footer-identity p,
.footer-legal p {
  margin: 0;
}

.footer-navigation,
.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-navigation a,
.footer-legal__links a {
  color: var(--footer-muted);
  text-decoration: none;
  transition: color 120ms ease, text-shadow 120ms ease;
}

.footer-navigation a:hover,
.footer-navigation a:focus-visible,
.footer-legal__links a:hover,
.footer-legal__links a:focus-visible {
  color: var(--footer-green);
  text-shadow: var(--footer-glow-green);
}

.footer-terminal-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 28px 0;
  padding: 10px 12px;
  border-block: 1px dashed rgba(0, 255, 153, 0.25);
  color: rgba(0, 255, 153, 0.72);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
}

.footer-terminal-line__pulse {
  color: var(--footer-pink);
  text-shadow: 0 0 10px rgba(255, 43, 214, 0.85);
  animation: footer-pulse 1.4s steps(2, end) infinite;
}

@keyframes footer-pulse {
  0%,
  45% {
    opacity: 1;
  }
  46%,
  100% {
    opacity: 0.25;
  }
}

@media (min-width: 760px) {
  .footer-main,
  .footer-legal {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer-navigation,
  .footer-legal__links {
    justify-content: flex-end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-terminal-line__pulse {
    animation: none;
  }
}
